[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.9.7 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=""
) solid line with color from palette is used (see section Pallete and colors). If string contain symbol ‘a’ then lines are drawn one above another (like summation). If string contain symbol ‘f’ then waterfall chart is drawn for determining the cumulative effect of sequentially introduced positive or negative values. You can different colors for positive and negative values if number of specified colors is equal to 2*number of curves. See also Barh, Area, Stem, Chart, Default sizes. See section Bars sample, for sample code and picture.
- Method on
mglGraph
(C++, Python):void
Bars (const mglData &
x,const mglData &
y,const mglData &
z,const char *
pen=""
) - C function:
void
mgl_bars_xyz (HMGL
gr,const HMDT
x,const HMDT
y,const HMDT
z,const char *
pen) The function draws vertical bars from points {x[i], y[i], z[i]} down to z = Org.z.
- Method on
mglGraph
(C++, Python):void
Bars (const mglData &
x,const mglData &
y,const char *
pen=""
) - C function:
void
mgl_bars_xy (HMGL
gr,const HMDT
x,const HMDT
y,const char *
pen) 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
(C++, Python):void
Bars (const mglData &
y,const char *
pen=""
) - C function:
void
mgl_bars (HMGL
gr,const HMDT
y,const char *
pen) 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].
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |