Syntax
[C/C++:]
void ggAddGrid(int style1, int style2, int anx, int any);
[F90:]
subroutine ggAddGrid(style1, style2, anx, any)
integer, intent(in) :: style1, style2, anx, any
Arguments
style1
The style of frame to be drawn
|
= GNONE |
Draws a plain frame |
|
= GCARDINAL |
Draws a frame with markings at only the cardinal points |
|
= GINTERMEDIATE |
Draws a frame with markings at the cardinal and intermediate points |
style2
The style of grid (and frame) to be drawn
|
= GNONE |
Draws a plain frame |
|
= GTICKS |
Draws a frame with only tick marks |
|
= GTICKSANDCROSSES |
Draws a frame with tick marks and grid markers |
|
= GGRIDLINES |
Draws a grid made up of lines |
|
= GGRIDLINES2 |
Draws a grid made up of lines but forces any intermediate lines to be drawn using the default line thickness |
anx
Flag determining whether annotation and/or grid lines are drawn with the X axis
|
= GNOGRID |
Suppresses X axis and grid lines perpendicular to the X axis |
|
= GNOANNOTATION |
Suppresses annotation on the X axis |
|
= GANNOTATION |
Annotation values written outside the frame on the X axis
|
any
Flag determining whether annotation and/or grid lines are drawn with the Y axis
|
= GNOGRID |
Suppresses Y axis and grid lines perpendicular to the Y axis |
|
= GNOANNOTATION |
Suppresses annotation on the Y axis |
|
= GANNOTATION |
Annotation values written outside the frame on the Y axis
|
Description
The routine ggAddGrid() draws a frame and/or a grid for a Graph, Histogram or Bar Chart.  Grid positioning and scaling are controlled by ggSetAxesPos() and ggSetAxesScaling(). No intermediate tick marks are drawn on a discrete axis, irrespective of the value of
style1 &
style2. If either axis is discrete, tick marks on both axes are drawn outside the frame. X and/or Y zero coordinate lines are drawn if they occur within the data range and linear scaling is being used.
If either of
anx or
any is set to GNOANNOTATION, the annotation of the respective axis is suppressed. If either
anx or
any is set to GNOGRID, the annotation, major (and minor) tick marks are suppressed as well as the components of the grid lines perpendicular to that axis. The grid intersection symbols are unaffected.
The annotation is displayed with the attributes set with the most recent call to ggSetAxesAnnotation() and ggSetAxesAttribs(). The grid intersection marker for
style2 set to GTICKSANDCROSSES is set by the routine ggSetGridMarker(), the default being a small cross.
The grid is drawn using the current GINO line thickness and style except when
style1=GINTERMEDIATE and
style2=GGRIDLINES2 where the intermediate lines are drawn using the default line thickness.
See Also
ggAddGrid UsageggSetAxesPosggSetAxesScalingggSetAxesAnnotationggSetAxesAttribsggSetGridMarker