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.
1 parent 91f58db commit 1500e4bCopy full SHA for 1500e4b
lib/matplotlib/contour.py
@@ -1231,11 +1231,10 @@ 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'):
1236
- self.layers[0] = self.vmin - finfo.eps
+ self.layers[0] = -np.inf
1237
if self.extend in ('both', 'max'):
1238
- self.layers[-1] = self.vmax + finfo.eps
+ self.layers[-1] = np.inf
1239
1240
def _process_colors(self):
1241
"""
0 commit comments