File tree 1 file changed +7
-6
lines changed 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -824,6 +824,13 @@ def _get_ticker_locator_formatter(self):
824
824
b = self .norm .boundaries
825
825
if locator is None :
826
826
locator = ticker .FixedLocator (b , nbins = 10 )
827
+ elif isinstance (self .norm , colors .NoNorm ):
828
+ if locator is None :
829
+ # default locator:
830
+ nv = len (self ._values )
831
+ base = 1 + int (nv / 10 )
832
+ # put ticks on integers between the boundaries of NoNorm...
833
+ locator = ticker .IndexLocator (base = base , offset = .5 )
827
834
elif self .boundaries is not None :
828
835
b = self ._boundaries [self ._inside ]
829
836
if locator is None :
@@ -835,12 +842,6 @@ def _get_ticker_locator_formatter(self):
835
842
locator = self ._long_axis ().get_major_locator ()
836
843
if minorlocator is None :
837
844
minorlocator = self ._long_axis ().get_minor_locator ()
838
- if isinstance (self .norm , colors .NoNorm ):
839
- # default locator:
840
- nv = len (self ._values )
841
- base = 1 + int (nv / 10 )
842
- # put ticks on integers between the boundaries of NoNorm...
843
- locator = ticker .IndexLocator (base = base , offset = .5 )
844
845
845
846
if minorlocator is None :
846
847
minorlocator = ticker .NullLocator ()
You can’t perform that action at this time.
0 commit comments