Thanks to visit codestin.com Credit goes to github.com
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 dba51b2 commit 17dd254Copy full SHA for 17dd254
1 file changed
lib/matplotlib/axes.py
@@ -2960,6 +2960,9 @@ def get_handles():
2960
if label is not None and label != '' and not label.startswith('_'):
2961
handles.append(handle)
2962
labels.append(label)
2963
+ if len(handles) == 0:
2964
+ warnings.warn("No labeled objects found. Use label='...' kwarg on individual plots.")
2965
+ return None
2966
2967
elif len(args)==1:
2968
# LABELS
0 commit comments