We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e726ef commit da53a8dCopy full SHA for da53a8d
proplot/axes/plot.py
@@ -2192,13 +2192,13 @@ def _iter_legend_objects(objs):
2192
# Account for (1) multiple columns of data, (2) functions that return
2193
# multiple values (e.g. hist() returns (bins, values, patches)), and
2194
# (3) matplotlib.Collection list subclasses.
2195
- if isinstance(objs, (list, tuple)):
2196
- for obj in objs:
2197
- yield from _iter_legend_objects(obj)
2198
- elif hasattr(objs, 'get_label'):
+ if hasattr(objs, 'get_label'):
2199
label = objs.get_label()
2200
if label and label[:1] != '_':
2201
yield (objs, label)
+ elif isinstance(objs, (list, tuple)):
+ for obj in objs:
+ yield from _iter_legend_objects(obj)
2202
2203
2204
def cycle_changer(
0 commit comments