-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Problem Description
I am unable to save these pyfolio plots to files locally on my pc
def fig2img(self,fig):
buf = io.BytesIO()
fig.savefig(buf)
buf.seek(0)
img = Image.open(buf)
return imgPlease provide the full traceback:
plt.figure(figsize=(15, 6))
fig=pyfolio.plot_rolling_sharpe(pnl_df_eod['returns'])
img = self.fig2img(fig)
ppath=os.path.join(path,'rolling_sharpe.png')
img.save(ppath)Please provide any additional information below:
The error that is displayed is {'Axes' object has no attribute 'savefig'}
Versions
- Pyfolio version:
- Python version:
- Pandas version:
- Matplotlib version:
Metadata
Metadata
Assignees
Labels
No labels