Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Graphics Library > load_save > xsave

xsave

save graphics into a file

Calling Sequence

xsave(filename,[win_num])

Arguments

file_name

string, name of the file.

win_num

integer, the graphics window number. If not given, the current graphics window is used.

Description

xsave saves the graphics contained in the graphics window win_num in the binary file file_name. and can be reloaded with xload.

Since Scilab 5.0, all uimenu or uicontrol handles are also saved.

For graphics xsave(file_name,win_num) use preferabily save(file_name,scf(win_num)).

Examples

t=0:0.01:10;
subplot(211),plot2d(t,sin(t))
subplot(212),plot2d(t,sin(3*t))
save(TMPDIR+'/foo.scg',gcf())
clf()
load(TMPDIR+'/foo.scg')
   
a=gca();
curve=a.children.children; //handle on the curve
save(TMPDIR+'/foo.scg',curve)
delete(curve)
load(TMPDIR+'/foo.scg')

See Also

Authors

J.Ph.C.

<< xload load_save pie >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:23:46 CET 2011