Skip to content

Fix example of streamplot start_points option#6672

Merged
tacaswell merged 3 commits intomatplotlib:masterfrom
afvincent:fix_example_streamplot
Jul 3, 2016
Merged

Fix example of streamplot start_points option#6672
tacaswell merged 3 commits intomatplotlib:masterfrom
afvincent:fix_example_streamplot

Conversation

@afvincent
Copy link
Copy Markdown
Contributor

1/ Change the docstring, which was copy-pasted from the other example streamplot_demo_features, for something that should be more relevant and descriptive.

2/ Change fig0 and ax0, for only fig and ax as they are the only instances. My guess is that the previous names were just a copy-pasting result too.

3/ I don't know why, but the vector field in this example was different from the one used in all the other streamplot examples: it was mode of simple horizontal streamlines. I copy-pasted the vector field from streamplot_demo_features and added a few new seeds. The result seems more demonstrative to me: in the former example, one of the starting points was used to draw a very (very) short streamline, which puzzled me when trying to understand what the example was demonstrating.

The new example looks like:
modified_examples_streamplot_start_points

@tacaswell tacaswell merged commit d4e3765 into matplotlib:master Jul 3, 2016
@QuLogic QuLogic added this to the 2.1 (next point release) milestone Jul 3, 2016
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