go-plotly icon indicating copy to clipboard operation
go-plotly copied to clipboard

Way to render figure as static image (png, jpeg, svg)

Open stephane-seng opened this issue 4 years ago • 1 comments

Would it be difficult to render the figure to a static image like in the examples in https://plotly.com/python/renderers/

stephane-seng avatar Jun 17 '21 18:06 stephane-seng

Hi @stephane-seng

In the link you provided https://plotly.com/python/renderers/#static-image-renderers you can see that...

A set of renderers is provided for displaying figures as static images. These renderers all rely on the orca static image export utility. See the Static Image Export page for more information on getting set up with orca.

So also the python implementation is using an external tool. You can refer to orca documentation to find how to use it and a few examples.

BTW, I've also added a quick example to call orca inside a docker container. you can find it in the examples folder

Thank you for using go-plotly!

MetalBlueberry avatar Jun 20 '21 20:06 MetalBlueberry