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

Skip to content

Cast to integer to get rid of numpy warning #3241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 26, 2014
Prev Previous commit
Next Next commit
Index with an integer in test_axes
  • Loading branch information
jenshnielsen committed Jul 22, 2014
commit 687f1f8e2637a7f2a54d069902996151261dd246
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def test_nonfinite_limits():
y = np.log(x)
finally:
np.seterr(**olderr)
x[len(x)/2] = np.nan
x[len(x)//2] = np.nan
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x, y)
Expand Down