GRAPH.Units |
strUnits = GRAPH.Units( BYVAL nControl AS INTEGER, BYVAL axis AS INTEGER, [BYVAL units AS STRING = NULL] ) AS INTEGER
Specifies the units that are displayed in the graph. If units parameter is omitted, the current unit string is returned. Note; the unit string doesn't affect the values or the graph in any way. It is only for display purpose.
The following CONSTs are defined in MyBASIC2_Graph.BIS
NG_Axis_X = 1 Horizontal Axis NG_Axis_1 = 1 Same as NG_Axis_X NG_Axis_Y = 2 Vertical Axis NG_Axis_2 = 2 Same as NG_Axis_Y
Example:
IF GRAPH.New( nControl, NG_XT, "Velocity" ) <> 0 THEN ' Do some graphing stuff.... GRAPH.Units( nControl, NG_Axis_Y, "mm/s" ) ENDIF
|