-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fill between cleanup #9238
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
Fill between cleanup #9238
Conversation
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.
fill_between and fill_betweenx were almost entirely duplicated between each other. This adds a helper function with the common functionality, and attempts to generalize between them without making the logic *too* convoluted.
|
Ok...doing this off of un-patched master would result in conflicts. |
|
I don't think we need this. |
Actually, this still has the work to refactor and reduce duplication. I’ll rebase so it’s clear what’s new here. |
Sorry |
This looks like a nice refactor and I don't want to see it get lost, but unfortunately it needs a non-trivial rebase. Perhaps we can push on it right after the 2.2 release? |
I should be able to manage that after 2.2. |
Superseded by #16023. |
Cherry-picks #9236 from v2.1.x. It also goes further and refactors
fill_between(x)
a bit.fill_between
andfill_betweenx
were almost entirely duplicated between each other. This adds a helper function with the common functionality, and attempts to generalize between them without making the logic too convoluted.