-
Notifications
You must be signed in to change notification settings - Fork 337
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
Create PNG not just SVG objects #251
Comments
@parrt this code works well for me to save a viz to png or pdf. I know the
but maybe we can include this as an example script somewhere, if we don't want to make
|
would be nice to incorporate...how common/popular are those libs? add to the pip install options? |
They have pip installed just fine for me in the past, much easier than |
I wonder if that's true on UNIX and windows. If so, let's go for it and integrate. I think there is a |
It has been working for me on Linux (Fedora) and mac. It actually saves the svg to disk, then reloads and converts it, so there maybe a more efficient solution. I just know this has been working and has been easy to graft on to the library without changing any underlying code. |
I think the solution above using cairo works. Is there a reason not to go that route? It doesn't need to save to the disk for example. |
That's fine with me, I just wanted to share what I was doing. Is it possible to have options to also save as a pdf, and clean up the dot file, like I do above? |
Some notebook servers seem to run out of memory or something with huge SVG plots. Also we can't save PNG at this point. This snippet could be injected analogous to:
The text was updated successfully, but these errors were encountered: