Skip to content

Commit

Permalink
Reflect matplotlib switch from legend.legendHandles to legend.legend_…
Browse files Browse the repository at this point in the history
…handles
  • Loading branch information
pagmatt authored Jul 15, 2024
1 parent f4819f3 commit 822e414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tikzplotlib/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_legend_text(obj):
if leg is None:
return None

keys = [h.get_label() for h in leg.legendHandles if h is not None]
keys = [h.get_label() for h in leg.legend_handles if h is not None]
values = [t.get_text() for t in leg.texts]

label = obj.get_label()
Expand Down

0 comments on commit 822e414

Please sign in to comment.