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

Skip to content

Avoid triggering warnings in mandelbrot example. #13226

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 1 commit into from
Jan 19, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 19, 2019

... namely

examples/showcase/mandelbrot.py:17: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer.
  X = np.linspace(xmin, xmax, xn).astype(np.float32)
examples/showcase/mandelbrot.py:18: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer.
  Y = np.linspace(ymin, ymax, yn).astype(np.float32)

plus some minor cleanups.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

... namely
```
examples/showcase/mandelbrot.py:17: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer.
  X = np.linspace(xmin, xmax, xn).astype(np.float32)
examples/showcase/mandelbrot.py:18: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer.
  Y = np.linspace(ymin, ymax, yn).astype(np.float32)
```

plus some minor cleanups.
@timhoffm timhoffm merged commit 902378f into matplotlib:master Jan 19, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 19, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 19, 2019
@anntzer anntzer deleted the mandelbrot-warnings branch January 19, 2019 19:32
dstansby added a commit that referenced this pull request Jan 19, 2019
…226-on-v3.0.x

Backport PR #13226 on branch v3.0.x (Avoid triggering warnings in mandelbrot example.)
QuLogic added a commit that referenced this pull request Feb 3, 2019
…226-on-v3.0.2-doc

Backport PR #13226 on branch v3.0.2-doc (Avoid triggering warnings in mandelbrot example.)
@tacaswell
Copy link
Member

Manually backported to v2.2.x via 4e473de

tacaswell pushed a commit that referenced this pull request Feb 1, 2020
... namely
```
examples/showcase/mandelbrot.py:17: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer.
  X = np.linspace(xmin, xmax, xn).astype(np.float32)
examples/showcase/mandelbrot.py:18: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer.
  Y = np.linspace(ymin, ymax, yn).astype(np.float32)
```

plus some minor cleanups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants