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

Skip to content

Fix fill_between with decreasing data #9236

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 2 commits into from
Sep 26, 2017
Merged

Conversation

dopplershift
Copy link
Contributor

One of the calls to interp passes data which is not guaranteed to be in
increasing order, which interp requires. Just use argsort the data, like
is done above.

Fixes #9235.

@tacaswell This fixes a bug in a new feature for 2.1--I'd love to see this go in before you cut if possible. 😁

@dopplershift
Copy link
Contributor Author

On master I think I'm going to refactor the fill_betweens...there's too much duplicated code between them.

@WeatherGod
Copy link
Member

don't forget to mark the svg file as binary.

Also, as a side note: there is an outstanding bug (not filed) where one of the fill functions respects cyclers properly, but the others don't. I came across it during my prep for my tutorial, but never got around to fixing it.

@dopplershift dopplershift added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Sep 26, 2017
@dopplershift dopplershift added this to the 2.1 (next point release) milestone Sep 26, 2017
@dopplershift
Copy link
Contributor Author

The SVG binary stuff was a wildcard, so I don't need to do anything, but it's only on master.

I'll keep an eye out for the cycler stuff when I work on refactoring them.

One of the calls to interp passes data which is not guaranteed to be in
increasing order, which interp requires. Just use argsort the data, like
is done above.
@dopplershift
Copy link
Contributor Author

Rebased on current v2.1.x branch and fixed up test to make sure it uses mpl20 style.

@NelleV NelleV merged commit 22d98a8 into matplotlib:v2.1.x Sep 26, 2017
@dopplershift dopplershift deleted the fix-9235 branch September 26, 2017 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants