GINO Graphics Suite - GINOGRAF v9.5  

ggDrawAxes

Syntax

[C/C++:]
void ggDrawAxes(int tick, int tickside, int val, int xory);
[F90:]
subroutine ggDrawAxes(tick, tickside, val, xory)
integer, intent(in) :: tick, tickside, val, xory

Arguments

tick
The style in which tick marks are to be drawn on the axis

= GNONE No tick marks drawn
= GCARDINAL Tick marks drawn only at the defined intervals
= GINTERMEDIATE Tick marks drawn at the defined intervals and also at intermediate positions
tickside
The side of axes tickmarks are drawn

= GCLOCKWISE Tick marks drawn on the clockwise side of the axis
= GANTICLOCKWISE Tick marks drawn on the anticlockwise side of the axis

val
The way in which numeric annotation is to be written on the axis

= GNOVAL No numeric annotation written
= GCLOCKWISE Numeric annotation written on clockwise side of axis
= GANTICLOCKWISE Numeric annotation written on the anti-clockwise side of the axis
= GCLOCKLOGINT Numeric annotation written on clockwise side of axis on major and intermediate tickmarks on log axis
= GANTICLOCKLOGINT Numeric annotation written on anti-clockwise side of axis on major and intermediate tickmarks on log axis
xory
Specified axis

= GXAXIS The X axis is drawn
= GYAXIS The Y axis is drawn

Description

The routine ggDrawAxes() draws the xory axis defined by ggSetAxesPos() and/or ggSetAxesScaling(), or the default axis if these routines have not been called. For the default values, see ggSetAxesPos() and ggSetAxesScaling().

By default, on a linearly-scaled axis, numeric scale values are written in the form:
S = P * 10N

where

S is the true value of an axis tick mark

P is the actual number written by the axis tick mark with up to two decimal places

* 10N is a multiplier written at the end of the axis ensuring N is not in the range -2 to 2

This may be altered using the routine ggSetAxesAnnotation().

On a logarithmically-scaled axis, the default numeric annotation is a set of consecutive integers, N representing log10(10N). This can be changed with a call to ggSetAxesAnnotation() altering the value of npower to produce annotation in the form of 10N or the actual value itself (1,10,100 etc.).  Intermediate tick marks may be drawn depending on the available space and if actual values are output, intermediate values 2,3,4..20,30,40.. etc. can be output by setting val accordingly. The scale factor Log10 is written at the end of the axis if the default form of annotation is produced.

A discrete axis is similar to a linear axis, except that the tick marks and numeric annotation are centred in the intervals, and no intermediate tick marks are drawn.

General axis annotation attributes, such as positioning, start and skip values, angled, justified, and reduced text, may be set using the routine ggSetAxesAttribs().

See Also

ggDrawAxes Usage
ggSetAxesAnnotation
ggSetAxesAttribs