How to save a plot structure

HenriDeh
Thu, 12 Sep 2019 15:26:23 +0000
General Usage

I’d like to save a plot but not as an image file, basically I want to be able to save a Plot p, end my julia session, open a new one, load Plot p and then edit it with new series for example.

I tried to use BSON like this:

p = plot(rand(5))
BSON.@save "myplot.bson" p
#restart julia session
BSON.@load "myplot.bson" p
> UndefVarError: PyCall not defined

I tried adding and using the PyCall package but then another undefvarerror shows up.

Is there a convenient way to do this ?

5 posts - 4 participants