draw an entity. This function is obsolete.
draw()
draw(h)
:
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: This function is obsolete from Scilab 5.4.0 and is going to be removed with Scilab 5.4.1.
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
Version Description 5.4.0 Function draw is obsolete. .. _set: set.html .. _graphics_entities: graphics_entities.html .. _get: get.html .. _drawlater: drawlater.html .. _drawnow: drawnow.html