Skip to content
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] 'dashed' line style not working properly when using webgl #10876

Closed
TheoMathurin opened this issue Jan 29, 2021 · 1 comment · Fixed by #10861
Closed

[BUG] 'dashed' line style not working properly when using webgl #10876

TheoMathurin opened this issue Jan 29, 2021 · 1 comment · Fixed by #10861

Comments

@TheoMathurin
Copy link
Contributor

TheoMathurin commented Jan 29, 2021

Bokeh 2.2.3
Python 3.8.5
Ubuntu 18.04
Notebook or Bokeh server
Latest Firefox or Chromium

I've tried webgl rendering to speed up my scatter plots, with great success. However I use a line in these plots and noticed that all possible values for the line_dash keyword argument work except 'dashed', although the legend item seems to adapt just fine.

This is a rather minor issue but I figured it should be noted somewhere.

Minimal code:

from bokeh.plotting import figure
from bokeh.io import curdoc
from bokeh.layouts import gridplot

p1 = figure(title='No webgl')
p1.line([0, 1, 2, 3], [2, 5, 1, 6], line_dash='dashed', line_width=3, legend_label='Line1')

p2 = figure(title='webgl', output_backend='webgl')
p2.line([0, 1, 2, 3], [2, 5, 1, 6], line_dash='dashed', line_width=3, legend_label='Line1')

curdoc().add_root(gridplot([p1, p2], ncols=2, merge_tools=True))

dashed_line

@bryevdv
Copy link
Member

bryevdv commented Jan 31, 2021

although the legend item seems to adapt just fine.

IIRC legends are not rendered using webgl regardless of the main plot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants