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

Change language to:
English - 日本語 - Português

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

Aide Scilab >> Graphiques > figure_operations > gcf


Return handle of current graphic window.

Calling Sequence

h = gcf()





This routine returns the handle of the current graphic window.


f=gcf(); // Create a figure
f.figure_size= [610,469]/2;
f.figure_name= "Foo";

f=figure(); // Create a figure
h=uicontrol(f,"style","listbox","position", [10 10 150 160]); // Create a listbox
set(h, "string", "item 1|item 2|item3");// fill the list
set(h, "value", [1 3]); // select item 1 and 3 in the list

scf(0); // Make graphic window 0 the current figure
gcf()  // Return the graphic handle of the current figure

figure(f) // Make window f the current figure
gcf() // Return the graphic handle of the current figure

See Also

  • gdf — Return handle of default figure.
  • gca — Return handle of current axes.
  • gce — Get current entity handle.
  • get — Retrieve a property value from a graphics entity or an User Interface object.
  • scf — set the current graphic figure (window)
  • set — set a property value of a graphic entity object or of a User Interface object.
  • graphics_entities — description of the graphics entities data structures
  • uicontrol — create a Graphic User Interface object


Serge Steer, INRIA

<< figure_properties figure_operations gdf >>

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 May 12 11:45:00 CEST 2011