Skip to content

Commit bfb7310

Browse files
committed
FIX
1 parent 79b7f25 commit bfb7310

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/colorbar.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,10 @@ def _reset_locator_formatter_scale(self):
12121212
self._minorlocator = None
12131213
self._formatter = None
12141214
self._minorformatter = None
1215-
if (self.boundaries is not None or
1215+
if isinstance(self.norm, colors.LogNorm):
1216+
# if contours have lognorm, give them a log scale...
1217+
self._set_scale('log')
1218+
elif (self.boundaries is not None or
12161219
isinstance(self.norm, colors.BoundaryNorm)):
12171220
if self.spacing == 'uniform':
12181221
funcs = (self._forward_boundaries, self._inverse_boundaries)

0 commit comments

Comments
 (0)