Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - 日本語

Scilab-Branch-6.1-GIT
Change language to:
English - Français - Português - Русский

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

Scilabヘルプ >> Graphics > load_save > xsave

xsave

ファイルにグラフィックを保存する

呼び出し手順

xsave(filename)
xsave(filename, win_num)
xsave(filename, win_handle)

Parameters

file_name

文字列, ファイル名.

win_num

整数, グラフィックウインドウ番号. 指定されない場合, カレントのグラフィックウインドウ番号が 使用されます.

win_handle
handle of the figure to save. By default, gcf() is used.

説明

xsaveは,グラフィックウインドウwin_numに含まれる グラフィックをバイナリファイルfile_nameに保存します. このグラフィックはxloadで再ロードすることが可能です.

xsave(file_name, win_num) and xsave(file_name, win_handle) are just shortcuts respectively for h=findobj("figure_id", win_num); save(file_name, "h") and save(file_name, "win_handle"), that can be used directly.

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

参照

  • xload — displays in a given window some graphical component loaded from a file.
  • save — Saves some chosen variables in a binary data file
  • load — Loads some archived variables, a saved graphic figure, a library of functions

履歴

バージョン記述
5.0 All uimenu and uicontrol elements of the figure are now saved as well.
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:
Mon Jan 03 14:37:52 CET 2022