Navigation:  Programmer's Reference > Sending data to DPlot from another application >

ManualScale macro command

Print this Topic Previous pageReturn to chapter overviewNext page

Macro commands may be used either in macros or by sending the commands to DPlot via dynamic data exchange (DDE). Some commands are valid only in macros (noted by Macros Only). Commands sent to DPlot via DDE must be enclosed by square brackets [     ]. Macro commands should not include the brackets.

Command parameters shown in the descriptions below are placeholders for the actual values. Command parameters are either numeric values, equations that evaluate to numbers, or character strings. Character string parameters are always bound by double quotation marks. Equations must be preceded by an equals sign (=).

The pipe symbol (|) in the command syntax indicates that a parameter is optional, and should not be included in your macro unless otherwise noted.

All indices into arrays are 1-based, e.g. Curve1=1 refers to the first curve in a plot.

A 0x prefix for numbers in the descriptions below indicates hexadecimal notation; e.g. 0x0010 = 16.

JR/Viewer indicates that the command is supported by DPlot Jr or DPlot Viewer.
JR/Viewer indicates that the command is NOT supported by DPlot Jr or DPlot Viewer.


 

[ManualScale(xlo,ylo,xhi,yhi,ylo2,yhi2 )]
or
[ManualScale(xlo,ylo,xhi,yhi,zlo,zhi )] for 3D plots.

JR   Viewer

Forces the coordinates of the lower left and upper right corners of the plot. By default, DPlot automatically scales the plot. Recommended for real-time applications. The ylo2, yhi2 parameters (XY plots) specify the extents of a second independent Y axis (established with the Multiple Axes menu command or with a MultipleYAxes command string. For 3D plots, zlo and zhi specify the Z axis extents.

All parameters are optional and must be separated by commas. Omitted parameters are represented by 2 successive commas with no intervening spaces. For example, to force the Y extents of an XY plot and use the existing X extents, use

[ManualScale(,ylo,,yhi)]

You may use equations in place of numeric entries for any argument. For example:

[ManualScale(=FLOOR($XMIN/100)*100,=FLOOR($YMIN/10)*10,=CEIL($XMAX/100)*100,=CEIL($YMAX/10)*10)]

sets the X extents to multiples of 100 that include the actual data extents, and the Y extents to multiples of 10.

As with the Specify Extents option of the Extents/Intervals /Size menu command, the actual extents used will be dependent on the tick mark interval on each axis. To ensure that the plot uses the specified extents, combine this command with a TickInterval command and set the extents to a multiple of the respective tick mark intervals.

____________________________

See also

Extents/Intervals/Size menu command

 


Page url: https://www.dplot.com/help/index.htm?manualscalecommand.htm