DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


ShowColCol

Declaration: TFrmPlots.ShowColCol (ColX, ColY: integer; llx, lly, urx, ury: double; Caption: string): integer;
Sets the plot window into column/column mode and displays the data according to the parameters.

The parameters ColX and ColY specify the columns to be displayed. ColX is the column used for the x values, ColY is the column used for the y values. The parameters llx, lly, urx, ury define the range of the axes. llx and lly define the lower left point of the diagram, urx and ury define the upper right point. Setting all four parameters to zero forces an automatic zoom so that all data points are visible. The parameter Caption defines the caption to be displayed in the top right of the chart.

The function returns the following error codes:

 0 ... everything is OK
-1 ... ColX is out of range
-2 ... ColY is out of range
-3 ... the x axis has zero range
-4 ... the y axis has zero range