我正在用下列图表绘制下列图表:
mpf.plot(dfnew_plot,volume=True,style='starsandstripes',datetime_format=' %d-%m',alines=
two_points,addplot=apdict,xrotation=45,title=(stock),type='candle',ylabel='ROC5= '+(ROC5) +' '
+'ROC20= '+(ROC20)+ ' ' +'ROCmean= '+(ROCmean),figscale=0.5)
多谢你们的支持。
发布于 2021-02-03 13:45:58
Mplfinance允许您将情节保存到文件中(pdf、png、jpg等)。
查看并阅读这里的所有文档:https://github.com/matplotlib/mplfinance/blob/master/examples/savefig.ipynb
一旦将其保存到文件中,就可以将该文件作为电子邮件附件发送。见此处:https://docs.python.org/3/library/email.examples.html
一般来说,通过阅读mplfinance文档可以学到很多东西:https://github.com/matplotlib/mplfinance#contents-and-tutorials
hth
https://stackoverflow.com/questions/66009387
复制相似问题