Syntax
[C/C++:]
void ggAddBarChartOutline(int nbars,GBARCHART *bars, float frac);
[F90:]
subroutine ggAddBarChartOutline(nbars, bars, frac)
type(GBARCHART), intent(in) :: bars(*)
integer, intent(in) :: nbars
real, intent(in) :: frac
Arguments
nbars
The number of bars to be plotted
bars
Array of structures giving data for the Bar Chart outline
frac
Value between 0.0 and 1.0 inclusive which specifies the fraction of an interval to be occupied by each bar. If
frac = 1.0, only the necessary lines are drawn, ie, lines common to two bars are omitted. If
frac = 0.0, two coincident lines are drawn centred on the tick mark
Description
The routine ggAddBarChartOutline() draws a Bar Chart of
nbars bars defined in array of structures
bars, where
bars.s and
bars.f represent the start and finish values with respect to the current axes as set up by the last axis definition calls. The bars on the Bar Chart have the width ((length of discrete axis)/
nbars) *
frac.
The bars are centred on the tick marks on the discrete axis. If a discrete axis has not been defined using ggSetAxesScaling() (ie,
scale = GDISCRETE), or both axes have been defined as discrete axes, the discrete axis is assumed to be the X axis. Linear scaling is assumed as the default for the Y axis.
See Also
ggAddBarChartOutline UsageggSetAxesScalingggPlotBarChartggFillBarChartggAddBarChartValues