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

Skip to content

Commit 88ee7bf

Browse files
committed
Check limits only of points in the triangulation
1 parent fdbde0c commit 88ee7bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/tri/tricontour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def _contour_args(self, args, kwargs):
9393
raise ValueError('z array cannot contain non-finite values')
9494

9595
z = np.ma.masked_invalid(z, copy=False)
96-
self.zmax = float(z.max())
97-
self.zmin = float(z.min())
96+
self.zmax = float(z_check.max())
97+
self.zmin = float(z_check.min())
9898
if self.logscale and self.zmin <= 0:
9999
raise ValueError('Cannot %s log of negative values.' % fn)
100100
self._contour_level_args(z, args[1:])

0 commit comments

Comments
 (0)