Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - English

Change language to:
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 >> Graphics > axes_operations > sda

sda

Set default axes.

Calling Sequence

sda()
a = gda(); set(a,"default_values",1)

Arguments

a

handle, the handle of the default axes.

Description

This routine resets the axes' model to default values.

Examples

x=[0:0.1:2*%pi]';
f=get("default_figure"); // get the handle of the model figure 
a=get("default_axes");   // get the handle of the model axes 
                         // setting its' properties
f.figure_size=[1200 900];
f.figure_position=[0 0]; 
a.background=4; 
a.box="off";
a.foreground=5;
a.labels_font_color=25;
a.labels_font_size=4;
a.sub_tics=[7 3];
a.x_location="middle";
a.y_location="middle";
a.tight_limits="on";
a.thickness=2;
a.grid=[-1 24];
subplot(221);
plot2d(x-2,sin(x))
subplot(222);
plot2d(x-6,[2*cos(x)+.7 2*cos(x)+.9 cos(2*x) .2+sin(3*x)],[-1,-2,-3 -4])
sda() // return to the  default values of the axes' model
subplot(223);
plot2d(x-2,sin(x))
subplot(224);
plot2d(x-6,[2*cos(x)+.7 2*cos(x)+.9 cos(2*x) .2+sin(3*x)],[-1,-2,-3 -4])
xdel(0)
plot2d(x-2,sin(x))

See Also

  • sdf — Set default figure.
  • gda — Return handle of default axes.
  • gdf — Return handle of default figure.
  • 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

Authors

Djalel ABDEMOUCHE

<< sca axes_operations subplot >>

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:44:25 CEST 2011