I'm looking for a remote machine to generate a Plot
, and save the file so that I can import it and manipulate it as a standard Mathematica object later. How do you export the object as such? I can export to a PDF, but not to a data form where I can later import and manipulate.
A sketch of the workflow I would like: On remote machine:
plot = Plot[Sin[x], {x, 0, 10}, ImageSize -> Small];
Export["/path/file.ext", plot]
Transfer the file, then on local machine import and manipulate:
plot = Import["/path/file.ext"];
Show[plot, ImageSize -> Large]
I'm not looking to make a Table
of values because I am leaving Mathematica to optimise the plot sampling (function evaluation is very expensive). I don't mind extracting the values it created in order to recreate the Plot
, but I also don't know how to do that. Also, the remote machine is running in command-line mode.
DumpSave
andGet
$\endgroup$Get
call gives me$Failed
. Both computers run Linux, but the remote machine has version 11, whereas the local has version 10.2, maybe that might be causing it? $\endgroup$DumpSave
can be platform and version dependent. Mainly intended for use on a single machine, not for transferring objects between systems running different versions of Mathematica. $\endgroup$