-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Extra whitespace with SVG export #8046
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
Comments
Have you tried the following? It is briefly mentioned in the docs that you need to do this in order to get transparent backgrounds. Although it'd be nice if this was the default with svg exports. |
Hm, no but I don't think my issue is with transparency it is that there is extra whitespace between the levels in the plots when exporting to SVG. This is also apparent in the legend. |
@canavandl do you have any ideas off the top of your head? |
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. |
This was initially reported in the Google groups channel and was encouraged to open an issue here
ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)
Ubuntu 16.04
Python 3.6 (Conda env)
Jupyter notebook 5.5
Bokeh 0.13.0
Firefox (although shouldn't matter)
Description of expected behavior and the observed behavior
When exporting a multilevel categorical barchart to SVG it seems to introduce extra whitespace between the levels. This extra whitespace is also apparent in the legend. The effect is worse for longer labels as though the padding is linked to the number of characters in the label.
Complete, minimal, self-contained example code that reproduces the issue
A notebook and the html output of the notebook can be found here:
https://gist.github.com/msalvaris/3bebd4027a2fe9ba7b428f18ac310ced
The text was updated successfully, but these errors were encountered: