V_findAxes
FunctionCalculate 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 );
Pascal/Delphiuses Vgraph;
procedure V_findAxes( xmin, xmax, ymin, ymax:Extended );
DescriptionThis 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 V_initPlot.

Error handlingnone
Return valuenone
See alsoV_drawAxes,   V_initPlot,   VF_xyAutoPlot

VectorLib Table of Contents  OptiVec home