|
18 | 18 | import cm |
19 | 19 | from cm import ColormapJet, Grayscale, ScalarMappable |
20 | 20 | import _image |
21 | | -from ticker import AutoLocator, LogLocator |
22 | | -from ticker import ScalarFormatter, LogFormatter, LogFormatterExponent, LogFormatterMathtext |
| 21 | +from ticker import AutoLocator, LogLocator, NullLocator |
| 22 | +from ticker import ScalarFormatter, LogFormatter, LogFormatterExponent, LogFormatterMathtext, NullFormatter |
23 | 23 |
|
24 | 24 | from image import AxesImage |
25 | 25 | from legend import Legend |
@@ -2825,6 +2825,8 @@ def set_xscale(self, value, basex = 10, subsx=None): |
2825 | 2825 | elif value == 'linear': |
2826 | 2826 | self.xaxis.set_major_locator(AutoLocator()) |
2827 | 2827 | self.xaxis.set_major_formatter(ScalarFormatter()) |
| 2828 | + self.xaxis.set_minor_locator(NullLocator()) |
| 2829 | + self.xaxis.set_minor_formatter(NullFormatter()) |
2828 | 2830 | self.transData.get_funcx().set_type( IDENTITY ) |
2829 | 2831 |
|
2830 | 2832 |
|
@@ -2908,6 +2910,8 @@ def set_yscale(self, value, basey=10, subsy=None): |
2908 | 2910 | elif value == 'linear': |
2909 | 2911 | self.yaxis.set_major_locator(AutoLocator()) |
2910 | 2912 | self.yaxis.set_major_formatter(ScalarFormatter()) |
| 2913 | + self.yaxis.set_minor_locator(NullLocator()) |
| 2914 | + self.yaxis.set_minor_formatter(NullFormatter()) |
2911 | 2915 | self.transData.get_funcy().set_type( IDENTITY ) |
2912 | 2916 |
|
2913 | 2917 | def set_yticklabels(self, labels, fontdict=None, **kwargs): |
|
0 commit comments