File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1212,17 +1212,16 @@ def _reset_locator_formatter_scale(self):
1212
1212
self ._minorlocator = None
1213
1213
self ._formatter = None
1214
1214
self ._minorformatter = None
1215
- if (isinstance (self .mappable , contour .ContourSet ) and
1216
- isinstance (self .norm , colors .LogNorm )):
1217
- # if contours have lognorm, give them a log scale...
1218
- self ._set_scale ('log' )
1219
- elif (self .boundaries is not None or
1215
+ if (self .boundaries is not None or
1220
1216
isinstance (self .norm , colors .BoundaryNorm )):
1221
1217
if self .spacing == 'uniform' :
1222
1218
funcs = (self ._forward_boundaries , self ._inverse_boundaries )
1223
1219
self ._set_scale ('function' , functions = funcs )
1224
1220
elif self .spacing == 'proportional' :
1225
- self ._set_scale ('linear' )
1221
+ if isinstance (self .norm , colors .LogNorm ):
1222
+ self ._set_scale ('linear' )
1223
+ else :
1224
+ self ._set_scale ('log' )
1226
1225
elif getattr (self .norm , '_scale' , None ):
1227
1226
# use the norm's scale (if it exists and is not None):
1228
1227
self ._set_scale (self .norm ._scale )
You can’t perform that action at this time.
0 commit comments