Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - 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.
However, this page did not exist in the previous stable version.

Scilab help >> Graphics > 2d_plot > oldplot

oldplot

simple plot (old version)

Calling Sequence

oldplot(x,y,[xcap,ycap,caption])
oldplot(y)

Arguments

x,y

two vectors with same sizes

xcap,ycap,caption

character strings or string matrices

Description

Plot y as function of x. xcap and ycap are captions for x-axis and y-axis respectively and caption is the caption of the plot.

Invoked with only one argument, oldplot(y) plots the y vector or, if y is a matrix, it plots all its row vectors on the same plot. This plot is done with respect to the vector 1:<number of columns of y>.

oldplot is obsolete. Use plot2d or plot instead.

Examples

x=0:0.1:2*%pi;
// simple plot
oldplot(sin(x))
// using captions
clf()
oldplot(x,sin(x),"sin","time","plot of sinus")
// plot 2 functions
clf()
oldplot([sin(x);cos(x)])

See Also

Authors

J.Ph.C.

<< histplot 2d_plot paramfplot2d >>

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:
Thu May 12 11:44:25 CEST 2011