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

hatch_pattern and svg #9001

Vitamin9024 opened this issue Jun 14, 2019 · 1 comment · Fixed by #10402

hatch_pattern and svg #9001

Vitamin9024 opened this issue Jun 14, 2019 · 1 comment · Fixed by #10402


Copy link

Vitamin9024 commented Jun 14, 2019

When I use output_backend='svg' and a hatch_pattern, the html file never loads (as if it was too many points). The same is with exporting.


f = figure(width=1000, height=500, output_backend='svg')
f.varea(x=[0, 100], y1=[0, 0], y2=[1, 1], alpha=0,
            hatch_pattern="/", hatch_scale=150)
show(f)  # or export_svgs(f, "some.svg") or export_png(f, "some.png")
Copy link

mattpap commented Jun 14, 2019

I can reproduce this and this behavior isn't unexpected given that bokehjs is a raster rendering library by default. I suppose this particular issue is fixable, but in any case that would require changes to canvas2svg library ( that we use to convert raster rendering commands to vector. They have an open PR for image embedding, which should be useful to improve performance in this case.

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

Successfully merging a pull request may close this issue.

3 participants