Python/Plotly Offline将结果导出到图像而不是html文件中

如何将 PLOTLY 结果离线导出为图像(png、jpeg、jpg)或pdf而不是 html 格式?

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

如果没有直接的解决方案,我怎样才能稍后将这个 html 绘图结果转换为 ppt/pdf/image ?


呼唤远方
浏览 79回答 1
1回答

米琪卡哇伊

您可以使用以下命令创建静态导出:fig.write_image("my_fig.png")
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python