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.
1 parent 9413188 commit a9a4683Copy full SHA for a9a4683
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] = finfo.min
1237
if self.extend in ('both', 'max'):
- self.layers[-1] = np.inf
1238
+ self.layers[-1] = finfo.max
1239
1240
def _process_colors(self):
1241
"""
0 commit comments