GINO Graphics Suite - GINOGRAF v9.5  

ggPlotGraph

Syntax

[C/C++:]
void ggPlotGraph(int npts, GPOINT *points, int scx, int scy, int style, int axis);
[F90:]
subroutine ggPlotGraph(npts, points, scx, scy, style, axis)

integer, intent(in) :: npts, scx, scy, style, axis
type(GPOINT), intent(in) :: points(*)

Arguments

npts
The number of points to be plotted

points
Array of dimension npts, giving the X and axis values of the points to be defined on the graph

scx
The type of scaling used on the X axis

= GLINEAR Linear scale on X axis
= GLOG10 Log10 scale on X axis

scy
The type of scaling used on the Y axis

= GLINEAR Linear scales on Y axis
= GLOG10 Log10 scale on Y axis

style
Type of graph

= GSYMBOLS Symbol drawn at each data point
= GSTRAIGHT Points drawn with straight lines
= GCUBIC Points joined with piecewise smooth parametric cubic curve
= GAKIMA Point joined with smooth Akima curve
= GSPLINE Points joined with parametric cubic spline

Negative values of the above will add a symbol at each point.

axis
Type of axes

= GFRAME A frame is drawn
= GAXES Axes are drawn through origin of data (if present) or at the bottom left corner of drawing area

Description

The routine ggPlotGraph() is a general purpose graph drawing routine that plots the data supplied in the components points.x and points.y according to the above arguments. The graph is drawn to fit the available drawing area or current window. Scaling and annotation are performed automatically.

The resultant curve drawn with style=GCUBIC or GSPLINE can extend outside the graph frame or drawing area. The curve end conditions may be set by using the routines ggSetCurveStartConds() and/or ggSetCurveEndConds().

Graphs with style= GSYMBOLS or GSTRAIGHT, can be affected by the current missing value mode as set by the routine ggDefineMissingValues().

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

ggPlotGraph Usage
ggDefineMissingValues
ggSetAxesAnnotation
ggSetAxesAttribs
ggSetCurveStartConds
ggSetCurveEndConds
ggSetGraphScaling
ggSetPlotFrame