Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - 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 > figure_operations > drawnow

drawnow

draw hidden graphics entities.

Calling Sequence

drawnow()

Description

Considering the current figure, this function can be used to draw the hidden graphics entities and all its chidren, that may have been postponed by a previous call to drawlater. The immediate_drawing property of the current figure is set to "on".

It can specially be used with the drawlater function.

Examples

f=get("current_figure") // handle of the current figure
  
drawlater()
subplot(221);
t=1:10;plot2d(t,t.^2)
subplot(222);
x=0:1:7;plot2d(x,cos(x),2) 
subplot(234);
plot2d(t,cos(t),3);
subplot(235);
plot2d(x,sin(2*x),5); 
subplot(236);
plot2d(t,tan(2*t));  
 
draw(gca()); //draw the current axes and its children
draw(f.children([3 4])); // draw the specified axes and their children
drawnow(); // draw the current figure

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.
  • drawlater — makes axes children invisible.
  • graphics_entities — description of the graphics entities data structures
Report an issue
<< drawlater figure_operations figure_properties >>

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:
Mon Oct 01 17:34:55 CEST 2012