Scilab-Branch-6.1-GIT
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
drawlater
makes axes children invisible.
Syntax
drawlater()
Description
This function can be used not to display immediately onto the
current figure
the next created graphics objects - i.e. by
calling high level functions such as plotting functions or setting
properties to existent objects. The immediate_drawing
property of the current figure is set to 'off'
in order to
postpon the next drawings.
It can specially be used with the drawnow
function.
To enable back the immediate_drawing
for the current
figure, you can use drawnow
function.
Warning : note that between drawlater and drawnow calls, the current
figure may have changed. Therefore, this must be used carefully. |
Examples
//Example : one axes / one figure drawlater(); xfarc(.25,.55,.1,.15,0,64*360); xfarc(.55,.55,.1,.15,0,64*360); xfrect(.3,.8,.3,.2); xfrect(.2,.7,.5,.2); xfrect(.32,.78,.1,.1); xfrect(.44,.78,.14,.1); xfrect(-.2,.4,1.5,.8); xstring(0.33,.9,"A Scilab Car"); a=get("current_axes"); a.children(1).font_size=4; a.children(1).font_style=4; a.children(1).background=5; a.children(3).background=8; a.children(4).background=8; a.children(5).background=17; a.children(6).background=17; a.children(7).background=25; a.children(8).background=25; xclick(); drawnow(); //Example 2:: two axes / one figure clf subplot(211) drawlater // what will be present in this axes will be displayed later plot2d // nothing is displayed => feeds the graphical buffer subplot(212) plot3d drawnow // the graphical buffer is flushed: all its contents become visible
See also
- get — Gets the handle of a graphical or User Interface object, or the property's value of objects.
- set — set properties of some graphic objects or uimenus or uicontrol interactive components
- drawnow — draw hidden graphics entities.
- graphics_entities — description of the graphics entities data structures
Report an issue | ||
<< colordef | figure_operations | drawnow >> |