Skip to content

Commit 66a8ac0

Browse files
committed
FIX : do not pass empty curve list through
If there are lines on the Axes, but they are all labeled '_nolegend_', treat as if there are no lines on the Axes. Closes #4323
1 parent 5555f54 commit 66a8ac0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/qt_editor/figureoptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def figure_edit(axes, parent=None):
8787
('Edgecolor', line.get_markeredgecolor()),
8888
]
8989
curves.append([curvedata, label, ""])
90+
# make sure that there is at least one displayed curve
91+
has_curve = bool(curves)
9092

9193
datalist = [(general, "Axes", "")]
9294
if has_curve:

0 commit comments

Comments
 (0)