I can plot the graph. My code is like this:
plt.savefig('test3.png')
fig.write_html("test3.html")
AttributeError: 'Figure' object has no attribute 'write_html
I need to convert the image to html and then put it in my email.
I was hoping to save the image and then convert it to html, as I am developing an automatic email in python and the idea is to use the graphic and place it in the email.
According to the docs , it should be done like this:
plotly.io.write_html(fig, "test3.html")
I have not tested it, but I think it should work.
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.