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


plot2d3

2D plot (vertical bars)

Syntax

plot2d3([logflags,] x,y,[style,strf,leg,rect,nax])
plot232(y)
plot2d3(x,y <,opt_args>)
hdl = plot2d3(...)

Arguments

args

see plot2d for a description of parameters.

Description

plot2d3 is the same as plot2d but curves are plotted using vertical bars.

By default, successive plots are superposed. To clear the previous plot, use clf().

Enter the command plot2d3() to see a demo.

Note that all the modes proposed by plot2dxx (xx = 1 to 4) can be enabled using plot2d and setting the polyline_style option to the corresponding number.

Examples

x = [0:0.1:2*%pi]';
plot2d3(x, [sin(x) sin(2*x) sin(3*x)])
clf()
x = [0:0.1:2*%pi]';
e = plot2d(x, [sin(x) sin(2*x) sin(3*x)])
e.polyline_style=3;

See also

  • plot2d — 2D plot
  • plot2d2 — 2D plot (step function)
  • plot2d4 — 2D plot (arrows style)
  • clf — Clears and resets a figure or a frame uicontrol
  • polyline_properties — description of the Polyline entity properties

History

VersionDescription
2025.0.0 Function returns the created handle(s).
Report an issue
<< plot2d2 2d_plot plot2d4 >>

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:
Thu Oct 24 11:13:09 CEST 2024