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 784680b

Browse filesBrowse files
dstansbyjklymak
authored andcommitted
Fix colorbar with SymLogNorm
1 parent e4dbf4e commit 784680b
Copy full SHA for 784680b

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/colorbar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colorbar.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,11 +1119,11 @@ def _mesh(self):
11191119
else:
11201120
y = self._proportional_y()
11211121
xmid = np.array([0.5])
1122-
try:
1122+
if self._use_auto_colorbar_locator():
11231123
y = norm.inverse(y)
11241124
x = norm.inverse(x)
11251125
xmid = norm.inverse(xmid)
1126-
except ValueError:
1126+
else:
11271127
# occurs for norms that don't have an inverse, in
11281128
# which case manually scale:
11291129
dv = self.vmax - self.vmin

0 commit comments

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