Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3764d42 + 5428cea commit 37182eeCopy full SHA for 37182ee
lib/matplotlib/contour.py
@@ -1231,10 +1231,11 @@ def _process_levels(self):
1231
self.layers = 0.5 * (self._levels[:-1] + self._levels[1:])
1232
# ...except that extended layers must be outside the
1233
# normed range:
1234
+ finfo = np.finfo(float)
1235
if self.extend in ('both', 'min'):
- self.layers[0] = -np.inf
1236
+ self.layers[0] = self.vmin - finfo.eps
1237
if self.extend in ('both', 'max'):
- self.layers[-1] = np.inf
1238
+ self.layers[-1] = self.vmax + finfo.eps
1239
1240
def _process_colors(self):
1241
"""
0 commit comments