Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-of-theseus-survival-plot: No artists with labels found to put in legend #92

Open
ostrolucky opened this issue Mar 29, 2024 · 2 comments

Comments

@ostrolucky
Copy link

❯ git-of-theseus-survival-plot
No artists with labels found to put in legend.  Note that artists whose label start with an underscore are ignored when legend() is called with no argument.

How can I be of assistance to troubleshoot and fix this? I have even tried git-of-theseus master version.

@juocal
Copy link

juocal commented Mar 30, 2024

Ran into the same issue. Apparently it is connected to changes in matplot lib.

See matplotlib/matplotlib#27145

But I haven't found a solution / fix

@OxygenCobalt
Copy link

If you patch the setup.py to force-install matplotlib 3.9.0, it works @juocal @ostrolucky:

from distutils.core import setup

setup(
    name="git-of-theseus",
    version="0.3.4",
    description="Plot stats on Git repositories",
    author="Erik Bernhardsson",
    author_email="[email protected]",
    url="https://github.com/erikbern/git-of-theseus",
    packages=["git_of_theseus"],
    install_requires=[
        "gitpython",
        "numpy",
        "tqdm",
        "wcmatch",
        "pygments",
        "matplotlib==3.9.0",
    ],
    entry_points={
        "console_scripts": [
            "git-of-theseus-analyze=git_of_theseus.analyze:analyze_cmdline",
            "git-of-theseus-survival-plot=git_of_theseus:survival_plot_cmdline",
            "git-of-theseus-stack-plot=git_of_theseus:stack_plot_cmdline",
            "git-of-theseus-line-plot=git_of_theseus:line_plot_cmdline",
        ]
    },
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants