How to export a graph from a html-file to a png picture?

I need png or jpg pictures of my graphs.
With output_file(“C:\test.html”) I create the html files. How to store them as png? I want them to be included in an Excel Sheet later on.

Greetings

Thomas

I answered the same question in SO a few minutes ago. I suppose you are same there… if not the case, I am pasting my answer here too :wink:

You can easily export to png images using a built in tool in Bokeh…

I am linking you an example of our tutorial: http://bokeh.pydata.org/tutorial/solutions/gallery/lines.html

There, you can see a tool called “preview/save”. If you click in that button, you will be prompted to a new area where you can save the image with a right click of your mouse.

More info about this tool: http://bokeh.pydata.org/docs/user_guide.html?highlight=preview#previewsavetool

Any other help, let me know…

Cheers.

···

On Thu, Jun 5, 2014 at 9:37 AM, Thomas Rusche [email protected] wrote:

I need png or jpg pictures of my graphs.
With output_file(“C:\test.html”) I create the html files. How to store them as png? I want them to be included in an Excel Sheet later on.

Greetings

Thomas

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/6e015946-6914-4f81-aa5a-471d5c79300c%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

I follow this thread for a better understanding of what is actually possible.
I have read that this feature is described in the Long-term TODO List as:

  • Offscreen render using Node.js

So it seems that there is way to produce a static image in an offscreen mode using node.js.
Any guideline on how to do that ?

I have more than 3000 html files but like to have an image for each.

Regards
Patrick