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

fix typo in _legend.py : obj.ncol should be obj.ncols #579

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elicox0
Copy link

@elicox0 elicox0 commented Mar 31, 2023

This fixes an AttributeError when a user calls plt.legend() and then saves a figure with tikzplotlib.save. Since obj in the relevant line is of type matplotlib.legend.Legend(), the attribute is ncols and not ncol (see https://matplotlib.org/stable/api/legend_api.html#matplotlib.legend.Legend).

@FriedrichFroebel
Copy link

FriedrichFroebel commented Mar 31, 2023

This duplicates (at least) #574, #565 and #558 and just has not been merged yet, see #574 (comment) as well. This is no typo, but a change from matplotlib 3.6.0.

@GillesC
Copy link

GillesC commented Jan 26, 2024

Why is this not merged?

@FriedrichFroebel
Copy link

Because maintenance is more or less stalled at the moment.

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

Successfully merging this pull request may close these issues.

3 participants