File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -3374,7 +3374,7 @@ def minorticks_on(self):
3374
3374
elif scale == 'symlog' :
3375
3375
s = ax ._scale
3376
3376
ax .set_minor_locator (
3377
- mticker .SymmetricalLogLocator (s .base , s .subs ))
3377
+ mticker .SymmetricalLogLocator (s ._transform , s .subs ))
3378
3378
else :
3379
3379
ax .set_minor_locator (mticker .AutoMinorLocator ())
3380
3380
Original file line number Diff line number Diff line change @@ -4861,6 +4861,18 @@ def test_eventplot_legend():
4861
4861
plt .legend ()
4862
4862
4863
4863
4864
+ # Test all 4 combinations of logs/symlogs for minorticks_on()
4865
+ @cleanup
4866
+ def test_minorticks_on ():
4867
+ for xscale in ['symlog' , 'log' ]:
4868
+ for yscale in ['symlog' , 'log' ]:
4869
+ fig , ax = plt .subplots ()
4870
+ ax .plot ([1 , 2 , 3 , 4 ])
4871
+ ax .set_xscale (xscale )
4872
+ ax .set_yscale (yscale )
4873
+ ax .minorticks_on ()
4874
+
4875
+
4864
4876
if __name__ == '__main__' :
4865
4877
import nose
4866
4878
import sys
You can’t perform that action at this time.
0 commit comments