File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3413,7 +3413,7 @@ def minorticks_on(self):
34133413 elif scale == 'symlog' :
34143414 s = ax ._scale
34153415 ax .set_minor_locator (
3416- mticker .SymmetricalLogLocator (s .base , s .subs ))
3416+ mticker .SymmetricalLogLocator (s ._transform , s .subs ))
34173417 else :
34183418 ax .set_minor_locator (mticker .AutoMinorLocator ())
34193419
Original file line number Diff line number Diff line change @@ -5047,3 +5047,14 @@ def test_invalid_axis_limits():
50475047 plt .ylim (np .nan )
50485048 with pytest .raises (ValueError ):
50495049 plt .ylim (np .inf )
5050+
5051+
5052+ # Test all 4 combinations of logs/symlogs for minorticks_on()
5053+ @pytest .mark .parametrize ('xscale' , ['symlog' , 'log' ])
5054+ @pytest .mark .parametrize ('yscale' , ['symlog' , 'log' ])
5055+ def test_minorticks_on (xscale , yscale ):
5056+ ax = plt .subplot (111 )
5057+ ax .plot ([1 , 2 , 3 , 4 ])
5058+ ax .set_xscale (xscale )
5059+ ax .set_yscale (yscale )
5060+ ax .minorticks_on ()
You can’t perform that action at this time.
0 commit comments