|Function||Calculate an appropriate scaling and draw a Cartesian coordinate system.|
|Syntax C/C++||#include <Vgraph.h>
void V_findAxes( long double Xmin, long double Xmax, long double Ymin, long double Ymax );
procedure V_findAxes( xmin, xmax, ymin, ymax:Extended );
|Description||This function will rarely be called by the user, but is used internally in VF_xyAutoPlot and other plotting functions. According to the x- and y ranges given in the parameters Xmin, Xmax, Ymin and Ymax, a linear Cartesian coordinate system is drawn with ten subdivisions both for the abscissa and the ordinate. If necessary, the x and y ranges are enlarged so as to meet the following conditions:
1. Every subdivision line represents an exact (and not only a rounded) value.
2. If the range of one axis or both includes zero, zero falls exactly on a subdivision line.
If the automatic scaling is not desired, use V_drawAxes instead.
Before calling V_findAxes, the plotting routines have to be initialized by either V_initGraph or V_initPlot.
VectorLib Table of Contents OptiVec home