cxGeoPlotDataFloatSet - use a float to set an attribute of the current dataset to be plotted

#include <cx/Geometry.h>

enum cxGeoDataSetting

cxErrorCode cxGeoPlotDataFloatSet (cxGeoDataSetting type, float val)
The attribute of the current dataset to be set.
A floating-point value to be used to set the attribute.

cxGeoPlotDataFloatSet returns an error code, an enumerated integer with cx_err_none (zero) indicating success. Any other value indicates an improper input (see below) the absence of a prior call to cxGeoPlotBegin, or the absence of any datasets on the plot. A description of the error can be obtained by immediately calling cxGeoPlotGetLastError.

This function sets an attribute of the current dataset using a floating-point value. The current dataset is the most recently added, or it may be selected with cxGeoPlotDataFocusSet. Meaningful results will only be obtained for those attributes that require a float value. These are listed in the following sections.

CX_GEO_DATA_LINE_WIDTH - the line width for the dataset's curve on the plot

For this attribute, val is converted to an integer, and used as width of the line, in number of pixels. The default line width is 1.0.

CX_GEO_DATA_FILL_VALUE - the Y value used to fill the curve

For this attribute, val is used to draw a horizontal line across the plot at Y = val. The area between the line and the dataset's curve is then filled using the current fill color (this may be set with cxGeoPlotDataColorSet).

Attempting to set other attributes using this function will generate an error.

cxGeoPlotBegin cxGeoPlotGetLastError cxGeoPlotDataFocusSet cxGeoPlotDataColorSet

The source of the LineGraph module may be found in $EXPLORERHOME/src/LineGraph/linegraph.c on UNIX machines, and %EXPLORERHOME%\src\LineGraph\linegraph.c on Windows machines. It illustrates the use of many of the cxGeoPlot* routines.

[ Documentation Home ]