Redraw figure from PyPlot.PyObject



Let’s assume I’ve created plot using PyPlot at the end of my script

... # script to get "data" for plot
using PyPlot
p = plt[:plot](data)

and then I close the GUI window.

I wonder if there is any way to display/save p::PyPlot.PyObject once GUI window is gone?

The goal is to create set of plots silently (not displaying them) and recall them selectively without the need to run whole script again.