Skip to content

drawnow

Force pending graphics updates to display.

drawnow

Flushes the graphics queue — the chart is redrawn immediately. Useful in animation loops where you want each frame to render rather than batching them all to the end.

for i = 1:100
plot(x, y(i,:));
drawnow
end
  • pause — Pause execution for a duration or until a key is pressed.
  • figure — Create or activate a chart sheet (figure window).