Skip to content

Commit bcb57af

Browse files
committed
Merge pull request #3141 from cgohlke/patch-1
BUG: Fix 'TypeError: expected bytes, str found' on Python 3
2 parents b0dc1d5 + 3d3ff09 commit bcb57af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/mlab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,8 +3452,8 @@ def griddata(x, y, z, xi, yi, interp='nn'):
34523452
yi = yi[:, 0]
34533453

34543454
# Override default natgrid internal parameters.
3455-
_natgrid.seti('ext', 0)
3456-
_natgrid.setr('nul', np.nan)
3455+
_natgrid.seti(b'ext', 0)
3456+
_natgrid.setr(b'nul', np.nan)
34573457

34583458
if np.min(np.diff(xi)) < 0 or np.min(np.diff(yi)) < 0:
34593459
raise ValueError("Output grid defined by xi,yi must be monotone "

0 commit comments

Comments
 (0)