-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Why does fill_betweenx not have interpolate? #6543
Comments
What do you mean by 'interpolate'? It should have the same behavior as 'plot'. If you want to do a higher order interpolation than linear, do that as pre-processing before passing the data into |
The What I mean is that if I plot the traces horizontally and use I deduce from the documentation that this is because there is no interpolation and the wiiglet filling is constrained to the data points available. Shouldn't it be done in the same way even though we are swapping the axis (there is no |
Sorry, I should read the docs before commenting more of the time 🐑 That is an oversite the If you look at the source of the two functions, porting the functionality should not be too hard. The only dicey bit is we have to decide if the API on fill between will be def fill_betweenx(self, y, x1, x2=0, where=None, interpolate=False,
step=None, **kwargs): to match the or def fill_betweenx(self, y, x1, x2=0, where=None,
step=None, interpolate=False, **kwargs): to not break the API of I think this is a case where being python3 only and having kwarg-only parameters would be helpful. @rmlopes Want to take a crack an implementing this? |
Sure, it will be my pleasure.
Agreed. I guess the best would be not to break the What I would suggest is just to use it as a keyword argument in |
Fixed by above PR. |
Hi,
I am working with seismic wigglets, and the lack of interpolate on the
fill_betweenx
creates very poor filling on my vertical wigglets. Why isn't there an option to interpolate as withfill_between
?Tks
The text was updated successfully, but these errors were encountered: