Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f627dc7

Browse files
committed
switch calls for vmin and vmax through kwargs in _contour_args() to just call and not pop out the arguments. Turns out it is not necessary to use extend, this will just happen on its own.
1 parent d806c1a commit f627dc7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/matplotlib/contour.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import matplotlib.patches as mpatches
2222
import matplotlib.texmanager as texmanager
2323
import matplotlib.transforms as mtrans
24-
import pdb
2524

2625
# Import needed for adding manual selection capability to clabel
2726
from matplotlib.blocking_input import BlockingContourLabeler
@@ -1197,7 +1196,7 @@ def _process_levels(self):
11971196
# want to leave the original levels attribute unchanged.
11981197
# (Colorbar needs this even for line contours.)
11991198
self._levels = list(self.levels)
1200-
pdb.set_trace()
1199+
12011200
if self.extend in ('both', 'min'):
12021201
self._levels.insert(0, min(self.levels[0], self.zmin) - 1)
12031202
if self.extend in ('both', 'max'):
@@ -1501,14 +1500,14 @@ def _contour_args(self, args, kwargs):
15011500
vmax = kwargs['vmax']
15021501
ind = z > vmax
15031502
z[ind] = vmax
1504-
self.zmax = kwargs.pop('vmax')
1503+
self.zmax = kwargs['vmax']
15051504
else:
15061505
self.zmax = ma.maximum(z)
15071506
if 'vmin' in kwargs:
15081507
vmin = kwargs['vmin']
15091508
ind = z < vmin
15101509
z[ind] = vmin
1511-
self.zmin = kwargs.pop('vmin')
1510+
self.zmin = kwargs['vmin']
15121511
else:
15131512
self.zmin = ma.minimum(z)
15141513

0 commit comments

Comments
 (0)