We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
I want to export a Bokeh plot as SVG. Following https://docs.bokeh.org/en/latest/docs/user_guide/export.html, I add
plot.output_backend = "svg". This causes the image in the plot to be mirrored and shifted outside of the bounding box.
plot.output_backend = "svg"
This also happens with Windows + Anaconda + Edge browser
Taken from the Bokeh gallery:
import numpy as np
from bokeh.plotting import figure, show
from bokeh.io import output_notebook
N = 500
x = np.linspace(0, 10, N)
y = np.linspace(0, 10, N)
xx, yy = np.meshgrid(x, y)
d = np.sin(xx)*np.cos(yy)
p = figure(tooltips=[("x", "$x"), ("y", "$y"), ("value", "@image")])
p.x_range.range_padding = p.y_range.range_padding = 0
# must give a vector of image data for image parameter
p.image(image=[d], x=0, y=0, dw=10, dh=10, palette="Spectral11", level="image")
p.grid.grid_line_width = 0.5
p.output_backend = "svg" # SVG output
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.