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 88a7e06 commit fdd53a6Copy full SHA for fdd53a6
proplot/axes/base.py
@@ -2339,7 +2339,12 @@ def _to_list(obj): # noqa: E301
2339
# Handle lists of lists
2340
axs = axs or ()
2341
handles, labels = _to_list(handles), _to_list(labels)
2342
- list_of_lists = any(isinstance(h, (list, np.ndarray)) and len(h) > 1 for h in handles) # noqa: E501
+ if handles is None:
2343
+ list_of_lists = False
2344
+ else:
2345
+ list_of_lists = any(
2346
+ isinstance(h, (list, np.ndarray)) and len(h) > 1 for h in handles
2347
+ )
2348
if list_of_lists and ncol is not None:
2349
warnings._warn_proplot(
2350
'Detected list of *lists* of legend handles. '
0 commit comments