-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUG] Using array/list in line_dash for hspan doesn't work #13838
Comments
from bokeh.core.properties import value
plot.hspan(y=0, line_dash=value([5, 5])) This way no interpretation will be performed and the resulting plot will work as expected. |
Is this something specific to |
|
This works, because |
It always worked like this. Another similar prominent case is |
Alternatively one can also use this: plot.hspan(y=0, line_dash=[[5, 5]]) |
I think this can be made to meet expectations, so I would suggest we triage as a Edit: IIRC the original concern with image glyphs was the cost of inspecting potentially large data structures in the ragged array case, but now that we no longer accept ragged arrays as input maybe the image case could be similarly improved (but that deserves a separate issue) |
Software versions
Python version : 3.12.2 (main, Feb 21 2024, 00:00:00) [GCC 14.0.1 20240217 (Red Hat 14.0.1-0)]
IPython version : (not installed)
Tornado version : 6.4
Bokeh version : 3.4.1
BokehJS static path : /var/home/michael/src/koding/python/bokeh_hspan/.venv/lib/python3.12/site-packages/bokeh/server/static
node.js version : (not installed)
npm version : (not installed)
jupyter_bokeh version : (not installed)
Operating system : Linux-6.8.7-300.fc40.x86_64-x86_64-with-glibc2.39
Browser name and version
Firefox 125.0.2
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
Specifying line_dash in hspan should produce an hspan line with the given dash pattern.
Observed behavior
Specifying line_dash as an array/list causes the plot to not display properly. I can't see the hspan line, and when I pan the plot it starts to slide down towards the lower right corner (see attached screencast).
Using string names such as "solid" and "dashed" works ok.
Example code
Stack traceback or browser console output
No response
Screenshots
Screencast.from.2024-04-25.15-17-45.webm
The text was updated successfully, but these errors were encountered: