|Description||A Cartesian coordinate system is drawn with automatic scaling of the axes and the vector Y is plotted against the vector X. You can choose any combination of linear and logarithmic axes:
Prior to calling VF_xyAutoPlot etc., the plotting routines have to be initialized by V_initPlot.
|VF_xyAutoPlot: ||both X axis and Y axis linear.|
|VF_xyAutoPlot_xlg_ylin: ||X axis logarithmic, Y axis linear.|
|VF_xyAutoPlot_xlg_ylg: ||both X axis and Y axis logarithmic.|
|VF_xyAutoPlot_xlin_ylg: ||X axis linear, Y axis logarithmic.|
The VecObj version of this function has to be called as a member function of Y (rather than of X).
The font of the axis tick labels is the text font of the current device context.
The style of the plot is determined by the parameter form which should be constructed using the symbolic constants defined in <Vgraph.h> (C/C++) or in the unit Vgraph (Pascal/Delphi).
For the line styles, Borland's old BGI notation is still supported along with the standard Windows notation; the necessary macros for the translation are included in <Vgraph.h> and in the unit Vgraph.
1. Style of lines connecting adjacent data points:
|Windows style||BGI C/C++||BGI Pascal||appearance|
|PS_DASH||DASHED_LINE||DashedLn||- - - -|
|PS_DASHDOT||CENTER_LINE||CenterLn||- · - · -|
|PS_DASHDOTDOT|| || ||- · · - · ·|
|PS_NULL||NULL_LINE||NullLn||(no line at all)|
2. Symbols used to mark data points:
|SY_NULL||(no symbol at all) (default)|
3. Fill-style of the symbols:
|SY_HOLLOW||no filling (default)|
|SY_DOTTED||hollow, with a dot at the exact position of the data point|
The parameter form has to be constructed by adding the appropriate line style, the symbol and its fill-style, e.g. (SOLID_LINE + SY_TRIANGLEUP). Alternatively, the bit-wise "OR" operation may be used, e.g. (PS_SOLID | SY_CIRCLE | SY_DOTTED ).
In Pascal terms, these examples read:
(SolidLn + SY_TRIANGLEUP), and (PS_SOLID or SY_CIRCLE or SY_DOTTED).
Note that NULL_LINE or PS_NULL has to be explicitly specified, if the data points are not to be connected by lines. Just writing, e.g. (SY_BOX | SY_HOLLOW) would be interpreted as using the default line style, which is SOLID_LINE.
SY_NULL and SY_HOLLOW need not be specified, since these are the default symbol and fill-style, resp. For SY_NULL, SY_CROSS, SY_PLUS, and SY_STAR, the choice of fill-style has no effect.
The parameter color denotes the colour that is to be used for the plot (the data type COLORREF is unsigned long / ULong). The "standard" colors BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY, DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW, and WHITE are defined in <Vgraph.h> (or the unit Vgraph) by analogy with the COLORS defined for the old BGI. Nevertheless, it is recommended to use fine-tuned colors defined by the RGB macro, instead of the predefined colors.
The size of the symbols may be modified with the function V_setSymbolSize. The thickness of the lines may be modified using V_setLineThickness.
For examples, see the demo programs VDEMO and FITDEMO.