Fix example of streamplot `start_points` option #6672

Merged
merged 3 commits into from Jul 3, 2016

Conversation

Projects
None yet
4 participants
Contributor

afvincent commented Jul 1, 2016

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

afvincent added some commits Jul 1, 2016

@afvincent afvincent Fix docstring d2675d4
@afvincent afvincent Remove index on 'fig0' and 'ax0' (only ones of their kind) 6f5f347
@afvincent afvincent Same vector field as other examples & more demonstrative seeds
baaadcf

mdboom added the needs_review label Jul 1, 2016

@tacaswell tacaswell merged commit d4e3765 into matplotlib:master Jul 3, 2016

2 of 3 checks passed

continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.002%) to 70.275%
Details

tacaswell removed the needs_review label Jul 3, 2016

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