Open elicox0 opened 1 year ago
This duplicates (at least) #574, #565 and #558 and just has not been merged yet, see https://github.com/nschloe/tikzplotlib/pull/574#issuecomment-1461865449 as well. This is no typo, but a change from matplotlib
3.6.0.
Why is this not merged?
Because maintenance is more or less stalled at the moment.
This fixes an AttributeError when a user calls
plt.legend()
and then saves a figure withtikzplotlib.save
. Sinceobj
in the relevant line is of typematplotlib.legend.Legend()
, the attribute isncols
and notncol
(see https://matplotlib.org/stable/api/legend_api.html#matplotlib.legend.Legend).