We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6cf357 commit a3a66a9Copy full SHA for a3a66a9
lib/matplotlib/colorbar.py
@@ -1179,7 +1179,11 @@ def _reset_locator_formatter_scale(self):
1179
self._minorlocator = None
1180
self._formatter = None
1181
self._minorformatter = None
1182
- if (self.boundaries is not None or
+ if (isinstance(self.mappable, contour.ContourSet) and
1183
+ isinstance(self.norm, colors.LogNorm)):
1184
+ # if contours have lognorm, give them a log scale...
1185
+ self._set_scale('log')
1186
+ elif (self.boundaries is not None or
1187
isinstance(self.norm, colors.BoundaryNorm)):
1188
if self.spacing == 'uniform':
1189
funcs = (self._forward_boundaries, self._inverse_boundaries)
0 commit comments