Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.2 - Français

Change language to:
English - 日本語 - 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

Aide de Scilab >> Graphiques > load_save > xload

xload

load a saved graphics

Syntax

xload(file_name,[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

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.

Examples

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")

See also

  • xsave — save graphics into a file
  • load — Loads some archived variables, a saved graphic figure, a library of functions
  • save — Saves some chosen variables in a binary data file
Report an issue
<< load_save load_save xsave >>

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:
Thu Feb 14 14:59:58 CET 2019