We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 img
Please 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'}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem Description
I am unable to save these pyfolio plots to files locally on my pc
Please provide the full traceback:
Please provide any additional information below:
The error that is displayed is {'Axes' object has no attribute 'savefig'}
Versions
The text was updated successfully, but these errors were encountered: