load a saved graphics
xload(file_name,[win_num])
:file_name string, name of the file. : :win_num integer, the graphics window number. If not given, the
current graphics window is used.
:
xload reloads the graphics contained in the file file_name in the graphics window win_num.
Since Scilab 5.0, all uimenu or uicontrol handles are also loaded.
For files containing graphics, the load function can be used instead of xload. xload does not restore the window number, the window size nor the window dimensions.
t=0:0.01:10;
`subplot`_(211),`plot2d`_(t,`sin`_(t))
`subplot`_(212),`plot2d`_(t,`sin`_(3*t))
`xsave`_(TMPDIR + "/foo.scg", `gcf`_())
`clf`_()
xload(TMPDIR + "/foo.scg")
a=`gca`_();
curve=a.children.children; //handle on the curve
`save`_(TMPDIR + "/foo.scg", "curve")
`delete`_(curve)
`load`_(TMPDIR + "/foo.scg")