manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.9.4 Bars

These functions draw vertical bars from points to axis plane. The plots are drawn for each row if one of the data is the matrix. By any case the sizes of 1st dimension must be equal for all arrays x.nx=y.nx=z.nx. String pen specifies the color and style of line and marks (see section Line styles). By default (pen=NULL) solid line with color from palette is used (see section Pallete and colors). See also Barh, Area, Stem, Chart, Default sizes. See section Bars sample, for sample code and picture.

Method on mglGraph: void Bars (const mglData &x, const mglData &y, const mglData &z, const char *pen=NULL)

The function draws vertical bars from points {x[i], y[i], z[i]} down to z = Org.z.

Method on mglGraph: void Bars (const mglData &x, const mglData &y, const char *pen=NULL, float zVal=NAN)

The function draws vertical bars from points {x[i], y[i]} down to y = Org.y in plane z=zVal (default in plane z=Min.z).

Method on mglGraph: void Bars (const mglData &y, const char *pen=NULL, float zVal=NAN)

The function draws vertical bars from points {x[i], y[i]} down to y = Org.y in plane z=zVal (default in plane z=Min.z), where x[i] values are equidistantly distributed in interval [Min.x, Max.x].

Method on mglGraph: void Bars2 (const mglData &a, const char *pen=NULL, float zVal=NAN)

The function draws vertical bars from points {x[i], y[i]} down to y = Org.y in plane z=zVal (default in plane z=Min.z), where x=a(2*k,:), y=a(2*k+1,:), k \in 0 ... a.ny/2. This function is obsolete – use Bars() and SubData() functions instead.

Method on mglGraph: void Bars3 (const mglData &a, const char *pen=NULL)

The function draws vertical bars from points {x[i], y[i], z[i]} down to z = Org.z, where x=a(3*k,:), y=a(3*k+1,:), z=a(3*k+2,:), k \in 0 ... a.ny/3. This function is obsolete – use Bars() and SubData() functions instead.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2026
Individual documents may contain additional copyright information.