Skip to content

Commit 2c37bfd

Browse files
committed
Use _sizes not get_sizes
1 parent 99d3ba4 commit 2c37bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tikzplotlib/_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def draw_legend(data, obj):
6565
mark_options = []
6666
handles = obj.legendHandles if hasattr(obj, "legendHandles") else obj.legend_handles if hasattr(obj, "legend_handles") else None
6767
if handles:
68-
all_sizes = set(sz for handle in handles for sz in handle.get_sizes())
68+
all_sizes = set(sz for handle in handles for sz in handle._sizes)
6969
if len(all_sizes) > 1:
7070
warnings.warn(f"Varying marker sizes in the legend: {all_sizes}. Ignoring all of them.")
7171
elif all_sizes:

0 commit comments

Comments
 (0)