Make your own free website on Tripod.com

gErr grLibSetMaxMinScales

(Graph_t* br, UInt32 minX, UInt32 minY,
  UInt32 maxX, UInt32 maxY)

[MANDATORY if not using default initialization] sets the minimum and maximum X and Y scales.

Documentation

[MANDATORY if not using default initialization] sets the minimum and maximum X and Y scales. While a graph's actual X and Y axis lengths are values less than the screen's width and height, the actual values associated with a graph could be anything (e.g. X-axis showing 1998 to 2005 and Y axis showing 5000 to 10000). The scale values specify these values - and must be determined before setting the values.

The Max scale values for each axis MUST be greater >= the highest numerical value in any data point of the graph for that axis.

The Min scale values for each axis MUST be <= the lowest numerical value in any data point of the graph for that axis.

Parameters:
br - pointer to the data structure
minX - The minimum scale for X axis
minY - The minimum scale for Y axis
maxX - Minimum X axis scale
maxY - Maximum Y axis scale
Returns:
gErr for incorrect values,grLibNone for no error.
[
NOTE ] not required for PIE graphs.

Alphabetic index



This page was generated with the help of DOC++.