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 dccfc6b commit 632700bCopy full SHA for 632700b
1 file changed
lib/matplotlib/legend.py
@@ -749,7 +749,10 @@ def _auto_legend_data(self):
749
transform = handle.get_transform()
750
bboxes.append(handle.get_path().get_extents(transform))
751
752
- vertices = np.concatenate([l.vertices for l in lines])
+ try:
753
+ vertices = np.concatenate([l.vertices for l in lines])
754
+ except ValueError:
755
+ vertices = np.array([])
756
757
return [vertices, bboxes, lines]
758
0 commit comments