Skip to content

Commit 712aceb

Browse files
committed
FIX: pass set_norm through to the mappables set_norm
1 parent eda0b45 commit 712aceb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/matplotlib/colorbar.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,12 @@ def draw_all(self):
442442
if self.filled:
443443
self._add_solids(X, Y, C)
444444

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+
445451
def config_axis(self):
446452
ax = self.ax
447453

@@ -1158,11 +1164,9 @@ def update_normal(self, mappable):
11581164
# mid point is easier.
11591165
self.ax.set_xscale('log')
11601166
self.ax.set_yscale('log')
1161-
print('Log!')
11621167
else:
11631168
self.ax.set_xscale('linear')
11641169
self.ax.set_yscale('linear')
1165-
print('Linear!')
11661170

11671171
self.draw_all()
11681172
if isinstance(self.mappable, contour.ContourSet):

0 commit comments

Comments
 (0)