Syntax
[C/C++:]
void ggAddErrorBars(int npts, GPOINT *points, GERROR *errors, int type, int line, int xory);
[F90:]
subroutine ggAddErrorBars(npts, points, errors, type, line, xory)
integer, intent(in) :: npts, type, line, xory
type(GPOINT), intent(in) :: points(*)
type(GERROR), intent(in) :: errors(*)
Arguments
npts
The number of error bars to be plotted
points
Array of data points to be defined on the graph
errors
Array of relative error values below and above each corresponding value on the graph
type
Error bar symbol end type
|
= GARROWSIN |
Arrows pointing inwards |
|
= GTRIANGLESIN |
Triangles pointing inwards |
|
= GSOLIDTRIANGLESIN |
Filled triangles pointing inwards |
|
= GARROWSOUT |
Arrows pointing outwards |
|
= GTRIANGLESOUT |
Triangles pointing outwards |
|
= GSOLIDTRIANGLESOUT |
Filled triangles pointing outwards |
line
Flag determining whether or not a line is drawn between error limits
|
= GDRAWLINE |
Line is drawn |
xory
Specified axis
|
= GXAXIS |
Error bars shown perpendicular to X axis |
|
= GYAXIS |
Error bars shown perpendicular to Y axis
|
Description
The routine ggAddErrorBars() plots an error bar at each of the points on a graph within the defined axes. The bars are displayed as absolute distances above and below the values stored in the array
points. The relative distances above the values are stored in
error.upper, the relative distances below are stored in
error.lower. The ends of the error bars may be displayed in one of eight different forms depending on the value of
type. The symbol size being subject to the current GINO character width.
The bar ends may be joined by a line depending on the value of
line.
If axes have not been defined, the points will be read and plotted according to the default values for axis positioning and scaling.
See Also
ggAddErrorBars Usage