-
-
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
subcoordinates_y breaks DynamicMap #6120
Comments
What version of holoviews are you using? Can you try running on main (if not already) |
Originally 1.18.1; now main, but same behavior. |
Here's another variation that also doesn't work :): from functools import partial
import panel as pn
import holoviews as hv
from holoviews.streams import RangeX
hv.extension("bokeh")
def update(x_range):
if not x_range:
x_range = [0, 1]
print(x_range)
overlay = hv.Overlay([])
for x0 in [0, 1]:
xdata = [x0, 1, 2, x_range[-1]]
overlay *= hv.Curve(((xdata, (0, 1, 2, 3))), label=str(x0)).opts(subcoordinate_y=True)
return overlay
range_x = RangeX()
overlay = hv.DynamicMap(update, streams=[range_x])
overlay |
Are you sure it is the same behavior because the zoom tool should behave differently on the main? Because of #6051 |
Okay, maybe it's just RangeX that doesn't work? from functools import partial
import panel as pn
import holoviews as hv
from holoviews.streams import Tap
hv.extension("bokeh")
def update(x, y):
# if not x_range:
# x_range = [0, 1]
# print(x_range)
print(x, y)
overlay = hv.Overlay([])
for x0 in [0, 1]:
xdata = [x0, 1, 2, y]
overlay *= hv.Curve(((xdata, (0, 1, 2, 3))), label=str(x0)).opts(subcoordinate_y=True)
return overlay
range_x = Tap()
overlay = hv.DynamicMap(update, streams=[range_x])
overlay |
:) Wow @hoxbro you're quite magical. I forgot to pull the latest main... |
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. |
Removing subcoordinate_y makes the dynamicmap update again.
Expected
Screen.Recording.2024-02-19.at.1.11.23.PM.mov
Broken
Screen.Recording.2024-02-19.at.1.12.04.PM.mov
The text was updated successfully, but these errors were encountered: