| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| A ``ContourSet`` can be updated with new data | ||
| --------------------------------------------- | ||
| `.ContourSet.set_data` recontours new data using the existing artist, instead of | ||
| requiring the ``ContourSet`` to be removed and recreated:: | ||
|
|
||
| cs = ax.contour(X, Y, Z) | ||
| cs.set_data(X, Y, Z2) | ||
|
|
||
| It works for `~.Axes.contour`, `~.Axes.contourf`, `~.Axes.tricontour` and | ||
| `~.Axes.tricontourf`. The contour levels are kept, so the colors, the colorbar | ||
| and the legend entries of the ``ContourSet`` remain valid. This is useful for | ||
| animations and other interactive updates. |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.