You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version : 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)]
IPython version : 8.25.0
Tornado version : 6.4.1
NumPy version : 1.26.4
Bokeh version : 3.6.1
BokehJS static path : ~/Envs/fbpinn/Lib/site-packages/bokeh/server/static)
node.js version : v20.17.0
npm version : 10.8.2
jupyter_bokeh version : 4.0.5
Operating system : Windows-10-10.0.19045-SP0
Expected behavior
I expect, that I can save a figure to a file as svg and when I open it another program, it is displayed correctly.
Observed behavior
When I save a plot as a figure using the latest version ob bokeh 3.6.1 and open this file in inkscape or in python using reportlab, colored areas are defected. The color is not evaluated correctly and mostly shown in black.
Please notice, that this defect is not visible, if I open the file in a modern browser. Then the newer version is displayed in the correct from.
Reading the source code of the older and the newer versions shows, that the values inside an rgb call is changed. The older was rgb(222,222,222) which looks like valid CSS, while the newer is rgb(222 222 222) which looks like SCSS/SASS.
rgb(R G B) or rgb(R G B / A) is CSS 4 color syntax. I suppose SVG still supports officially only CSS 3 (or lower). If that's the case, and that needs to be confirmed with SVG specification, then we will have to make sure that all generated colors conform to the correct CSS level. Browsers may support newer levels of CSS where programs like Inkscape will not.
Software versions
Python version : 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)]
IPython version : 8.25.0
Tornado version : 6.4.1
NumPy version : 1.26.4
Bokeh version : 3.6.1
BokehJS static path : ~/Envs/fbpinn/Lib/site-packages/bokeh/server/static)
node.js version : v20.17.0
npm version : 10.8.2
jupyter_bokeh version : 4.0.5
Operating system : Windows-10-10.0.19045-SP0
Expected behavior
I expect, that I can save a figure to a file as svg and when I open it another program, it is displayed correctly.
Observed behavior
When I save a plot as a figure using the latest version ob bokeh
3.6.1
and open this file ininkscape
or in python usingreportlab
, colored areas are defected. The color is not evaluated correctly and mostly shown in black.Please notice, that this defect is not visible, if I open the file in a modern browser. Then the newer version is displayed in the correct from.
Reading the source code of the older and the newer versions shows, that the values inside an
rgb
call is changed. The older wasrgb(222,222,222)
which looks like valid CSS, while the newer isrgb(222 222 222)
which looks like SCSS/SASS.<path fill="rgb(202,178,214)" stroke="rgb(202,178,214)">
<path fill="rgb(202 178 214)" stroke="rgb(202 178 214)">
Example code
Screenshots
The text was updated successfully, but these errors were encountered: