-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug: Offline Static Image Export #596
Comments
@keithjjones this example is working for me. This functionality was added in version 1.12.2 Please confirm you're using an updated version of our python package and if you're still having the issue perhaps let us know what version of python you're using / include the code that is not working for you. |
My version:
and Python:
I'm using the exact command line in that page, except I'm using Python and not iPython. I either have to auto_open=True and save the image or double click on the html file and save the image. |
Yes that example using |
I'm using pure python. It's the offline.plot function that I'm using. No errors. It generates the html file fine. When I open the HTML file it then asks if I want to save the image. I don't want to open the HTML file to get an image, or I could just click on the "Save As PNG" and that render tends to look much better. It works this way on Windows 7 and Mac for me. |
That example includes:
That can only be run inside iPython. But the plot is using "plot". |
I see, you're trying to generate the graph without opening the html file. Thanks for letting us know about the issue in the example, I've updated the documentation to reflect that you must open the file. It looks like this feature was added with the intention of opening the plot to save the image. |
Ok thanks. |
Hey @keithjjones - the documentation has been updated to note this method. We've recently removed the alert when downloading offline images (v 1.12.10) but have decided to keep the |
@cldougl is there a way to open a feature request issue that is different than Github issues? I do not understand. |
Update: Programmatic static image export support has been released in 3.2.0: See https://medium.com/@plotlygraphs/plotly-py-end-of-summer-updates-5422c98b9058 |
https://plot.ly/python/offline/#static-image-export
This doesn't work. You still have to open the html file to get the image. Clicking on the "Save As" camera button produces a better picture (not skewed) if you are going to open the HTML file to get an image.
The text was updated successfully, but these errors were encountered: