# Redraw figure from PyPlot.PyObject

**URL:** <https://discourse.julialang.org/t/redraw-figure-from-pyplot-pyobject/4929>\
**Category:** Visualization\
**Tags:** pyplot\
**Created:** [July 18, 2017, 2:14pm UTC](https://discourse.julialang.org/t/redraw-figure-from-pyplot-pyobject/4929 "2017-07-18T14:14:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slowbrain](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/slowbrain/32/2224_2.png) [@slowbrain](https://discourse.julialang.org/u/slowbrain)\
**Post date:** [July 18, 2017, 2:14pm UTC](https://discourse.julialang.org/t/redraw-figure-from-pyplot-pyobject/4929/1 "2017-07-18T14:14:27Z")

</div>

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

```julia
... # 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.
