File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -5152,6 +5152,18 @@ def test_axis_set_tick_params_labelsize_labelcolor():
5152
5152
assert axis_1 .yaxis .majorTicks [0 ]._labelcolor == 'red'
5153
5153
95AE
5154
5154
5155
+ def test_axes_tick_params_gridlines ():
5156
+ # Now treating grid params like other Tick params
5157
+ ax = plt .subplot ()
5158
+ ax .tick_params (grid_color = 'b' , grid_linewidth = 5 , grid_alpha = 0.5 ,
5159
+ grid_linestyle = 'dashdot' )
5160
+ for axis in ax .xaxis , ax .yaxis :
5161
+ assert axis .majorTicks [0 ]._grid_color == 'b'
5162
+ assert axis .majorTicks [0 ]._grid_linewidth == 5
5163
+ assert axis .majorTicks [0 ]._grid_alpha == 0.5
5164
+ assert axis .majorTicks [0 ]._grid_linestyle == 'dashdot'
5165
+
5166
+
5155
5167
def test_none_kwargs ():
5156
5168
fig , ax = plt .subplots ()
5157
5169
ln , = ax .plot (range (32 ), linestyle = None )
You can’t perform that action at this time.
0 commit comments