Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.3 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Graphics > axes_operations > replot

replot

redraw the current graphics window with new boundaries

Calling Sequence

replot(rect,[handle])

Arguments

rect

row vector of size 4.

handle

optional argument. Graphics handle(s) of type Axes to select one or several given Axes.

Description

replot is used to redraw the content of the current graphics window with new boundaries defined by rect=[xmin,ymin,xmax,ymax]. Under old graphics syntax, it works only with the driver "Rec".

This transformation can be applied to specific axes given by Axes graphics handles via the handle argument. If handle is not specified, the new boundaries are applied to the current axes of the current figure. The transformation changes the data_bounds value of those axes. Note that the axes property tight_limits must also be set to "on" to strictly select those bounds (see axes_properties).

Examples

backupstyle='?'

// First Example
x=[0:0.1:2*%pi]';
plot2d(x,sin(x)) 
replot([-1,-1,10,2]) 

// Second Example
xdel(winsid());
plot() // plot demo
f=gcf();
replot([-1,-1,10,2],f.children(1)) // specify axes handle's value
replot([-3,-2,8,4],f.children(2))

See Also

  • xbasr — redraw a graphics window
  • clf — clear or reset the current graphic figure (window) to default values

Authors

J.Ph.C.

<< plotframe axes_operations rotate_axes >>

Copyright (c) 2022-2023 (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:
Wed Oct 05 12:09:59 CEST 2011