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

Closed
Vitamin9024 opened this issue Jun 14, 2019 · 2 comments · Fixed by #10402
Closed

hatch_pattern and svg #9001

Vitamin9024 opened this issue Jun 14, 2019 · 2 comments · Fixed by #10402

Comments

@Vitamin9024
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.

Example:

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")
@mattpap
Copy link
Contributor

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 (https://github.com/gliffy/canvas2svg/) 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.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants