@@ -6562,15 +6562,15 @@ def test_multiplot_autoscale():
6562
6562
@check_figures_equal (extensions = ["pdf" ])
6563
6563
def test_2dcolor_plot (fig_test , fig_ref ):
6564
6564
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 )
6567
6567
axs [0 ].plot ([1 , 2 ], [1 , 2 ], c = color .reshape ((- 1 )))
6568
6568
axs [1 ].scatter ([1 , 2 ], [1 , 2 ], c = color .reshape ((- 1 )))
6569
6569
axs [2 ].step ([1 , 2 ], [1 , 2 ], c = color .reshape ((- 1 )))
6570
6570
axs [3 ].hist (np .arange (10 ), color = color .reshape ((- 1 )))
6571
6571
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 )
6574
6574
axs [0 ].plot ([1 , 2 ], [1 , 2 ], c = color .reshape ((1 , - 1 )))
6575
6575
axs [1 ].scatter ([1 , 2 ], [1 , 2 ], c = color .reshape ((1 , - 1 )))
6576
6576
axs [2 ].step ([1 , 2 ], [1 , 2 ], c = color .reshape ((1 , - 1 )))
0 commit comments