How to save image with plot_components?
See original GitHub issueI am wondering if I can use plot_components and later save the figures to an image. I tried this
`plt = m.plot_components(forecast)
plt.savefig(‘output’)`
however plot_components returns a list and not a matplotlib figure. Hence the error was thrown…
Traceback (most recent call last): File "get_predictions.py", line 33, in <module> plt.savefig(output_file) AttributeError: 'list' object has no attribute 'savefig'
Any ideas is very much appreciated.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
How to Save Plots To Image Files Using Matplotlib
In today's article we are going to showcase how to save matplotlib figures and plots into image files on your disk. Additionally, we...
Read more >Save plot to image file instead of displaying it using Matplotlib
png , just call the matplotlib 's pylab class from Jupyter Notebook, plot the figure 'inline' jupyter cells, and then drag that figure/image...
Read more >How to Save a Plot to a File Using Matplotlib? - GeeksforGeeks
Method 1: Save Plot as Image with Matplotlib using savefig(). The figure produced after data plotting is saved using the savefig() method, ...
Read more >How to Save a Plot to a File Using Matplotlib | Tutorial by Chartio
Learn how to save a plot to a file using Matplotlib, a plotting library for Python. In this tutorial, we'll show you to...
Read more >Save Plot as Image or Vector Graphics File - MathWorks
You can save plots as images or as vector graphics files using either the export button in the axes toolbar, or by calling...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is what I use and it works…
m.plot_components(forecast).savefig('2.png');
how to save image into folder?