Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.2 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Biblioteca de Gráficos > load_save > xsave

xsave

salva gráficos em um arquivo

Seqüência de Chamamento

xsave(filename,[win_num])

Parâmetros

file_name

string, nome do arquivo

win_num

inteiro, o número da janela de gráficos. Se não for forneceido, a janela de gráficos corrente é utilizada.

Descrição

xsave salva os gráficos contidos na janela de gráficos win_num no arquivo binário file_name e pode ser carregado com xload.

Desde o Scilab 5.0, todos os manipuladores uimenu ou uicontrol também são salvos.

Para novos gráficos xsave(file_name,win_num)use preferivelmente save(file_name,scf(win_num).

Exemplos

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

Ver Também

  • xload — carrega gráficos salvos
  • save — Saves some chosen variables in a binary data file
  • load — Loads some archived variables, a saved graphic figure, a library of functions
Report an issue
<< xload load_save polygon >>

Copyright (c) 2022-2023 (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 15:00:47 CET 2019