File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -584,8 +584,9 @@ def _use_auto_colorbar_locator(self):
584
584
Return if we should use an adjustable tick locator or a fixed
585
585
one. (check is used twice so factored out here...)
586
586
"""
587
- # contouring = self.boundaries is not None and self.spacing == 'uniform'
588
- return (type (self .norm ) in [colors .Normalize , colors .LogNorm ])
587
+ contouring = self .boundaries is not None and self .spacing == 'uniform'
588
+ return (type (self .norm ) in [colors .Normalize , colors .LogNorm ] and
589
+ not contouring )
589
590
590
591
def _reset_locator_formatter_scale (self ):
591
592
"""
@@ -1118,13 +1119,12 @@ def _mesh(self):
1118
1119
else :
1119
1120
y = self ._proportional_y ()
1120
1121
xmid = np .array ([0.5 ])
1121
- if self ._use_auto_colorbar_locator () :
1122
+ if type ( self .norm ) in [ colors . Normalize , colors . LogNorm ] :
1122
1123
y = norm .inverse (y )
1123
1124
x = norm .inverse (x )
1124
1125
xmid = norm .inverse (xmid )
1125
1126
else :
1126
- # occurs for norms that don't have an inverse, in
1127
- # which case manually scale:
1127
+ # manually scale...
1128
1128
dv = self .vmax - self .vmin
1129
1129
x = x * dv + self .vmin
1130
1130
y = y * dv + self .vmin
You can’t perform that action at this time.
0 commit comments