Saving interactive plot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Saving interactive plot

cdpnepal
Is there a way to save interactive plot in matplotlib



--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Saving interactive plot

vincent.adrien@gmail.com
Hi,

I am not sure that I understand the question. If by interactive you mean
in a interactive session, then the following in your shell should do
what you want:

```python
plt.savefig("my_figure.png", dpi=300)  # save a PNG of the last active
figure with 300 DPI

fig.savefig("my_figure.png", dpi=300)  # does as above but one
explicitely specifies the figure to save
```
Yet another option is to directly use the “Save” button (pictured as a
stylised floppy drive) in the figure window.

Best,
Adrien


On 09/08/2017 12:31 PM, cdpnepal wrote:

> Is there a way to save interactive plot in matplotlib
>
>
>
> --
> Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
> _______________________________________________
> Matplotlib-users mailing list
> [hidden email]
> https://mail.python.org/mailman/listinfo/matplotlib-users
>

_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Saving interactive plot

Benjamin Root
In reply to this post by cdpnepal
You can press the floppy-disk icon in the figure window to bring up a save-file dialog.

Ben Root

On Fri, Sep 8, 2017 at 3:31 PM, cdpnepal <[hidden email]> wrote:
Is there a way to save interactive plot in matplotlib



--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users