Skip to content

Commit

Permalink
[legend] fixed empty newkwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
janscience committed Oct 3, 2024
1 parent d31e5df commit 0858449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plottools/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def legend(ax, *args, **kwargs):
if 'labels' in kwargs:
labels = kwargs.pop('labels')
labels = list(labels)
newkwargs = dict()
for k in range(len(labels)):
labels[k], newkwargs = translate_latex_text(labels[k], **kwargs)
lgd = ax.__legend_orig_legend(handles, labels, *args, **newkwargs)
Expand Down

0 comments on commit 0858449

Please sign in to comment.