Skip to content

Commit

Permalink
Merge pull request #5544 from matplotlib/revert-5534-color-extensions
Browse files Browse the repository at this point in the history
Revert "Fix #5524.  Use finfo.max instead of np.inf"
  • Loading branch information
tacaswell committed Nov 22, 2015
2 parents 91f58db + 1500e4b commit f90367a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/matplotlib/contour.py
Expand Up @@ -1231,11 +1231,10 @@ def _process_levels(self):
self.layers = 0.5 * (self._levels[:-1] + self._levels[1:])
# ...except that extended layers must be outside the
# normed range:
finfo = np.finfo(float)
if self.extend in ('both', 'min'):
self.layers[0] = self.vmin - finfo.eps
self.layers[0] = -np.inf
if self.extend in ('both', 'max'):
self.layers[-1] = self.vmax + finfo.eps
self.layers[-1] = np.inf

def _process_colors(self):
"""
Expand Down

0 comments on commit f90367a

Please sign in to comment.