@@ -3492,10 +3492,10 @@ def test_set_get_ticklabels():
3492
3492
# set ticklabel to 1 plot in normal way
3493
3493
ax [0 ].set_xticklabels (('a' , 'b' , 'c' , 'd' ))
3494
3494
ax [0 ].set_yticklabels (('11' , '12' , '13' , '14' ))
3495
-
3495
+
3496
3496
# set ticklabel to the other plot, expect the 2 plots have same label setting
3497
- # pass get_ticklabels return value as ticklabels argument
3498
- ax [1 ].set_xticklabels (ax [0 ].get_xticklabels () )
3497
+ # pass get_ticklabels return value as ticklabels argument
3498
+ ax [1 ].set_xticklabels (ax [0 ].get_xticklabels () )
3499
3499
ax [1 ].set_yticklabels (ax [0 ].get_yticklabels () )
3500
3500
3501
3501
@@ -3545,11 +3545,18 @@ def test_color_None():
3545
3545
fig , ax = plt .subplots ()
3546
3546
ax .plot ([1 ,2 ], [1 ,2 ], color = None )
3547
3547
3548
+ @cleanup
3549
+ def test_color_alias ():
3550
+ # issues 4157 and 4162
3551
+ fig , ax = plt .subplots ()
3552
+ line = ax .plot ([0 , 1 ], c = 'lime' )[0 ]
3553
+ assert_equal ('lime' , line .get_color ())
3554
+
3548
3555
@cleanup
3549
3556
def test_numerical_hist_label ():
3550
3557
fig , ax = plt .subplots ()
3551
3558
ax .hist ([range (15 )] * 5 , label = range (5 ))
3552
-
3559
+
3553
3560
@cleanup
3554
3561
def test_move_offsetlabel ():
3555
3562
data = np .random .random (10 ) * 1e-22
0 commit comments