KPG1_HSTLO

Computes the values to display for a histogram

Description:

This routine find the set of (X,Y) values representing the centre of each bin in a given histogram. The logarithm of the supplied values are used if logarithmic axes are requested. In this case, zero or negative values result in VAL__BADR values being returned.

Invocation

CALL KPG1_HSTLO( NHIST, HIST, HMIN, HMAX, XLOG, YLOG, XLOC, YLOC, STATUS )

Arguments

NHIST = INTEGER (Given)
The number of bins in the histogram.
HIST( NHIST ) = INTEGER (Given)
The histogram whose locus is to be found.
HMIN = REAL (Given)
The minimum data value that could be included within the histogram.
HMAX = REAL (Given)
The maximum data value that could be included within the histogram.
XLOG = LOGICAL (Given)
If .TRUE., logarithmic value are returned for the X axis.
YLOG = LOGICAL (Given)
If .TRUE., logarithmic value are returned for the Y axis.
XLOC( NHIST ) = REAL( WRITE )
Work array for the x locus of the histogram.
YLOC( NHIST ) = REAL( WRITE )
Work array for the y locus of the histogram.
STATUS = INTEGER (Given and Returned)
This is the status value on entry to this subroutine.