8000
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 eda0b45 commit 712acebCopy full SHA for 712aceb
lib/matplotlib/colorbar.py
@@ -442,6 +442,12 @@ def draw_all(self):
442
if self.filled:
443
self._add_solids(X, Y, C)
444
445
+ def set_norm(self, norm):
446
+ """
447
+ set the norm of the mappable associateed with this colorbar.
448
449
+ self.mappable.set_norm(norm)
450
+
451
def config_axis(self):
452
ax = self.ax
453
@@ -1158,11 +1164,9 @@ def update_normal(self, mappable):
1158
1164
# mid point is easier.
1159
1165
self.ax.set_xscale('log')
1160
1166
self.ax.set_yscale('log')
1161
- print('Log!')
1162
1167
else:
1163
1168
self.ax.set_xscale('linear')
1169
self.ax.set_yscale('linear')
- print('Linear!')
1170
1171
self.draw_all()
1172
if isinstance(self.mappable, contour.ContourSet):
0 commit comments