-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Autoranging on multi-line plots limits view to a single line #6033
Comments
And import holoviews as hv; hv.extension('bokeh')
import numpy as np
np.random.seed(42)
ys = np.random.randn(101).cumsum(axis=0)
curve = hv.Curve(ys) * hv.Curve(ys[::-1])
curve.opts(autorange='y') Screen.Recording.2023-12-14.at.2.11.23.PM.mov |
Update from @jlstevens: Together with @maximlt, they found out there is a more general problem with autoranging and overlays that is probably the cause; probably a regression since the multi-axis work. As such it will need to be fixed for the next holoviews release. @jlstevens will have another look this week |
@jlstevens, any update from last week? |
I'm currently working on it - unfortunately, this is a really tricky bit of code! |
Hi @jlstevens, could you provide a status update on this? |
I had to step away from my debugging attempts for a while but I can now look into this once more. My goal is to open a PR this week. Thank you for the reminder! |
Hi @jlstevens, any progress on that PR? |
Sorry I got distracted by other priorities once again. Perhaps there is someone else who could be assigned to work together with me on this? That will help keep me on track and help get this fixed faster. |
Turned out to be a small oversight in the existing implementation, so I fixed it. |
Thank you! I really thought I had to do something in the Python code to accumulate over the elements of the overlay. I realize my mental model of how the callback was looping over elements was wrong. Anyway, I'm just glad it is fixed :-) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
ALL software version info
Python : 3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 18:09:17) [Clang 16.0.6 ]
Operating system : macOS-13.5.2-arm64-arm-64bit
Panel comms : default
holoviews : 1.18.0
bokeh : 3.3.0
hvplot : 0.9.0
jupyterlab : 4.0.7
Description of expected behavior and the observed behavior
Interacting, via zoom or pan, on a plot with multiple lines limits the viewport to a single line if
autorange='y'
is set.Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
Screenshots or screencasts of the bug in action
Screen.Recording.2023-11-04.at.8.52.35.AM.mov
The text was updated successfully, but these errors were encountered: