Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5428cea

Browse files
committed
Use vmin/vmax offset by eps
1 parent a9a4683 commit 5428cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/contour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,9 +1233,9 @@ def _process_levels(self):
12331233
# normed range:
12341234
finfo = np.finfo(float)
12351235
if self.extend in ('both', 'min'):
1236-
self.layers[0] = finfo.min
1236+
self.layers[0] = self.vmin - finfo.eps
12371237
if self.extend in ('both', 'max'):
1238-
self.layers[-1] = finfo.max
1238+
self.layers[-1] = self.vmax + finfo.eps
12391239

12401240
def _process_colors(self):
12411241
"""

0 commit comments

Comments
 (0)