Skip to content

Commit 75389ad

Browse files
committed
invert ref / test relationship
1 parent aaac772 commit 75389ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6562,15 +6562,15 @@ def test_multiplot_autoscale():
65626562
@check_figures_equal(extensions=["pdf"])
65636563
def test_2dcolor_plot(fig_test, fig_ref):
65646564
color = np.array([0.1, 0.2, 0.3])
6565-
# plot with 1D-color:
6566-
axs = fig_test.subplots(5)
6565+
# plot with 1D-color as reference:
6566+
axs = fig_ref.subplots(5)
65676567
axs[0].plot([1, 2], [1, 2], c=color.reshape((-1)))
65686568
axs[1].scatter([1, 2], [1, 2], c=color.reshape((-1)))
65696569
axs[2].step([1, 2], [1, 2], c=color.reshape((-1)))
65706570
axs[3].hist(np.arange(10), color=color.reshape((-1)))
65716571
axs[4].bar(np.arange(10), np.arange(10), color=color.reshape((-1)))
6572-
# plot with 2D-color:
6573-
axs = fig_ref.subplots(5)
6572+
# plot with 2D-color as test:
6573+
axs = fig_test.subplots(5)
65746574
axs[0].plot([1, 2], [1, 2], c=color.reshape((1, -1)))
65756575
axs[1].scatter([1, 2], [1, 2], c=color.reshape((1, -1)))
65766576
axs[2].step([1, 2], [1, 2], c=color.reshape((1, -1)))

0 commit comments

Comments
 (0)