From 1500e4b414e586a200a2dbe5c31d28401b523718 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 22 Nov 2015 17:13:16 -0500 Subject: [PATCH] Revert "Fix #5524. Use finfo.max instead of np.inf" --- lib/matplotlib/contour.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/contour.py b/lib/matplotlib/contour.py index 7f529af5f24d..cfb19bf95001 100644 --- a/lib/matplotlib/contour.py +++ b/lib/matplotlib/contour.py @@ -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): """