简体   繁体   中英

Python/Plotly Offline export result into Image instead of html file

How can I export offline my PLOTLY results into Image (png, jpeg, jpg) or pdf instead of html format?

filename="test.html"
plotly.offline.plot(fig, filename=filename,show_link=False,auto_open=False)

If there is no direct solution, How can i convert this html plotly result into ppt/pdf/image later on ?

您可以使用以下方法创建静态导出

fig.write_image("my_fig.png")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM