Skip to content

Commit 8d9555e

Browse files
committed
account for the classic style in the mpl tests; need to specify none for both c and ec to ensure invisibility, in classic black edges are default
1 parent 335e76e commit 8d9555e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ def test_legend_labelcolor_linecolor_plot():
12401240
assert mpl.colors.same_color(tc, p[0].get_markerfacecolor())
12411241

12421242
fig, ax = plt.subplots()
1243-
p = ax.plot(x, 'o', c='none', label="invisible circles with invisible label")
1243+
p = ax.plot(x, 'o', c='none', mec='none', label="invisible circles and label")
12441244
leg = ax.legend(loc=1, labelcolor='linecolor')
12451245
tc = leg.texts[0].get_color()
12461246
assert tc == 'none'
@@ -1299,7 +1299,7 @@ def test_legend_labelcolor_linecolor_scatter():
12991299
assert mpl.colors.same_color(tc, p.get_facecolor())
13001300

13011301
fig, ax = plt.subplots()
1302-
p = ax.scatter(x, x, c='none', label="invisible circles with invisible label")
1302+
p = ax.scatter(x, x, c='none', ec='none', label="invisible circles and label")
13031303
leg = ax.legend(loc=1, labelcolor='linecolor')
13041304
tc = leg.texts[0].get_color()
13051305
assert tc == 'none'

0 commit comments

Comments
 (0)