Skip to content

Commit 480abb8

Browse files
committed
Check plotted bars are color C0
1 parent 68b0b6d commit 480abb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ def test_errobar_nonefmt():
24622462
plotline, _, barlines = plt.errorbar(x, y, xerr=1, yerr=1, fmt='none')
24632463
assert plotline is None
24642464
for errbar in barlines:
2465-
assert np.any(errbar.get_color() != [0, 0, 0, 0])
2465+
assert np.all(errbar.get_color() == mcolors.to_rgba('C0'))
24662466

24672467

24682468
@image_comparison(baseline_images=['hist_stacked_stepfilled',

0 commit comments

Comments
 (0)