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 1500e4b

Browse filesBrowse files
committed
Revert "Fix #5524. Use finfo.max instead of np.inf"
1 parent 91f58db commit 1500e4b
Copy full SHA for 1500e4b

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-3
lines changed

‎lib/matplotlib/contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/contour.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,11 +1231,10 @@ def _process_levels(self):
12311231
self.layers = 0.5 * (self._levels[:-1] + self._levels[1:])
12321232
# ...except that extended layers must be outside the
12331233
# normed range:
1234-
finfo = np.finfo(float)
12351234
if self.extend in ('both', 'min'):
1236-
self.layers[0] = self.vmin - finfo.eps
1235+
self.layers[0] = -np.inf
12371236
if self.extend in ('both', 'max'):
1238-
self.layers[-1] = self.vmax + finfo.eps
1237+
self.layers[-1] = np.inf
12391238

12401239
def _process_colors(self):
12411240
"""

0 commit comments

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