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

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Aide Scilab >> Graphiques > handle > draw

draw

draw an entity. This function is obsolete.

Calling Sequence

draw()
draw(h)

Arguments

h

a handle, the handle on an entity to draw. h can be a vector of handles, in which case all objects identified by h(i) will be drawn.

Description

This function can be used to draw entities specified by h even if its parent figure immediate_drawing property is "off". If no argument is specified, the current object is drawn. Note that the window must not be resized ; if not, those objects are hidden back.

WARNING: Obsolete function.from Scilab 5.4.0 and is going to be removed with Scilab 5.4.1.

Examples

Those two exemples below behave the same way hiding and showing objects.

subplot(212)
a=gca();
plot2d
drawlater

subplot(211)
plot2d1 // default drawing mode

e=gce();
draw(e.children(2)) // draw a single polyline of the second axes

e.children(1).visible='off'; // We can choose to make a line invisible

draw(e) // draw Compound and its children <=> draw all the visible polylines

drawnow // ...now!

e.children(1).visible='on';

subplot(212)
a=gca();
plot2d();
drawlater();

subplot(211);
plot2d1(); // default drawing mode

e=gce();
a = gca();
a.axes_visible = "off";
e.children(:).visible = "off";
drawnow();

e.children(2).visible = "on"; // draw a single polyline of the second axes

e.children(1).visible='off'; // We can choose to make a line invisible

e.children(3).visible = "on"; // Make other components visible again

a.axes_visible = "on";

e.children(1).visible='on'; // Make last polyline visible

See Also

  • get — Retrieve a property value from a graphics entity or an User Interface object.
  • set — set a property value of a graphic entity object or of a User Interface object.
  • drawnow — draw hidden graphics entities.
  • drawlater — makes axes children invisible.
  • graphics_entities — description of the graphics entities data structures

History

VersionDescription
5.4.0 Function draw is obsolete.
Report an issue
<< delete handle gce >>

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:36:47 CEST 2013