blob: 2473e9269715c154e31b5464f8d61cff9d85f53f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) INRIA
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
function [f]=scf(h)
//set default figure, h may be a handle or a figure_id
// (small correction to set up win number 0 when no
// gr window is opened, Bruno 22 nov 2004)
if argn(2)<1 then
num=winsid()
if num == [] then
h = 0
else
h = max(num)+1
end
end
set("current_figure",h);
f=get("current_figure");
endfunction
|