Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 859e42f

Browse filesBrowse files
committed
FIX: colorbar re-check norm before draw for autolabels
1 parent 521b60a commit 859e42f
Copy full SHA for 859e42f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎lib/matplotlib/colorbar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colorbar.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ def __init__(self, ax, cmap=None,
405405
else:
406406
self.formatter = format # Assume it is a Formatter
407407
# The rest is in a method so we can recalculate when clim changes.
408-
self.config_axis()
409408
self.draw_all()
410409

411410
def _extend_lower(self):
@@ -439,6 +438,7 @@ def draw_all(self):
439438
# units:
440439
X, Y = self._mesh()
441440
C = self._values[:, np.newaxis]
441+
self.config_axis()
442442
self._config_axes(X, Y)
443443
if self.filled:
444444
self._add_solids(X, Y, C)
@@ -1150,7 +1150,6 @@ def update_bruteforce(self, mappable):
11501150
self.set_alpha(mappable.get_alpha())
11511151
self.cmap = mappable.cmap
11521152
self.norm = mappable.norm
1153-
self.config_axis()
11541153
self.draw_all()
11551154
if isinstance(self.mappable, contour.ContourSet):
11561155
CS = self.mappable

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.