Skip to content

Commit

Permalink
Merge pull request #3141 from cgohlke/patch-1
Browse files Browse the repository at this point in the history
BUG: Fix 'TypeError: expected bytes, str found' on Python 3
  • Loading branch information
tacaswell committed Jun 27, 2014
2 parents b0dc1d5 + 3d3ff09 commit bcb57af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/matplotlib/mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -3452,8 +3452,8 @@ def griddata(x, y, z, xi, yi, interp='nn'):
yi = yi[:, 0]

# Override default natgrid internal parameters.
_natgrid.seti('ext', 0)
_natgrid.setr('nul', np.nan)
_natgrid.seti(b'ext', 0)
_natgrid.setr(b'nul', np.nan)

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

0 comments on commit bcb57af

Please sign in to comment.