Syntax
[C/C++:]
void ggPlotStepChart(int nsteps, GSTEPCHART *steps, float base, int scx, int scy, int drop);
[F90:]
subroutine ggPlotStepChart(nsteps, steps, base, scx, scy, drop)
integer, intent(in) :: nsteps, scx, scy, drop
type(GSTEPCHART), intent(in) :: steps(*)
real, intent(in) :: base
Arguments
nsteps
The number of steps to be plotted
steps
Array of dimension
nsteps, giving the start and finish widths and height values of all the areas in the Step Chart
scx
The type of scaling used on the X axes
|
= GLINEAR |
Linear scale on axis |
|
= GLOG10 |
Log10 scale on axis |
scy
The type of scaling used on the Y axes
|
= GLINEAR |
Linear scales on axis |
|
= GLOG10 |
Log10 scale on axis |
base
Base value in graphical coordinates which steps are drawn to depending on the value of
drop
drop
Flag determining how step edges are drawn
|
= GDROPTYPE0 |
Step heights only are drawn |
|
= GDROPTYPE1 |
Link adjacent steps |
|
= GDROPTYPE2 |
Link adjacent steps and draw non-adjacent edges to base |
|
= GDROPTYPE3 |
Draw all step edges to base |
Description
The routine ggPlotStepChart() draws a frame to fit the available drawing area or current window and plots a Step Chart within it. The steps are drawn as columns with widths determined by the values in
steps.s and
steps.f, and with heights of the values held in the component
steps.h.
The columns may be represented in one of four ways depending on the value of
drop. If
drop = GDROPTYPE2 or GDROPTYPE3 then all or the end column edges are drawn to
base on the Y axis.
The axes are scaled according to the value of
scx, scy.
The default axes annotation may be changed using the routines ggSetAxesAnnotation() and/or ggSetAxesAttribs().The default data ranges and axes intervals can be changed using the routine ggSetGraphScaling().
See Also
ggPlotStepChart UsageggAddStepChartOutlineggAddStepChartValuesggFillStepChartggSetAxesAnnotationggSetAxesAttribsggSetGraphScalingggSetPlotFrame