![](/img/trans.png)
[英]Python/Plotly Offline export result into Image instead of html file
[英]Image plotly to HTML in Python
我可以 plot 該圖。 我的代碼是這樣的:
plt.savefig('test3.png')
fig.write_html("test3.html")
AttributeError: 'Figure' object 沒有屬性 'write_html
我需要將圖像轉換為html,然后將其放入我的email中。
我希望保存圖像,然后將其轉換為 html,因為我正在 python 中開發自動 email,我的想法是使用圖形並將其放置在 email 中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.