Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.1 - Русский

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

Scilab help >> Графики > axes_operations > gda

gda

Return handle of default axes.

Calling Sequence

a = gda()
a = get("default_axes")

Arguments

a

handle, the handle of the default axes.

Description

The default axes is a graphic entity which is never drawn. It is used as a reference for the axes properties default values. These default properties values are used to initialize new axes inside figures.

The gda function returns the handle on the default axes. The user can use this handle to set or get the axes properties default values.

Note that an equivalent default graphic entity exists for figure entities too (see gdf).

Examples

a=gda() // get the handle of the model axes 
// set its' properties
a.box="off";
a.foreground=2;
a.labels_font_size=3;
a.labels_font_color=5;
a.sub_tics=[5 5 3];
a.x_location="top";

//now used the model axes for drawing
subplot(211) //create an axes entity
plot2d() 

// set other model's properties
a.background=color('gray')
a.grid=[5 5 5];
subplot(212)
t=0:0.1:5*%pi; 
plot2d(sin(t),cos(t)) 
 
set(a,"default_values",1); // return to the  default values of the model
                           // see sda() function
clf()
plot2d(sin(t),cos(t))

See Also

  • gdf — Return handle of default figure.
  • sda — Set default axes.
  • sdf — Set default figure.
  • clf — clear or reset the current graphic figure (window) to default values
  • gca — Return handle of current axes.
  • get — Retrieve a property value from a graphics entity or an User Interface object.
  • graphics_entities — описание структур данных графических объектов
Report an issue
<< gca axes_operations graduate >>

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:
Tue Apr 02 17:37:57 CEST 2013