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

Scale 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.


 

[Scale(code)]

JR   Viewer

Sets the scaling code for the plot (linear, logarithmic, etc.). The low byte of code should be one of the following:

1

Linear X, Linear Y

2

Linear X , Logarithmic Y

3

Logarithmic X, Linear Y

4

Logarithmic X, Logarithmic Y

5

Tripartite (log-log) scale

6

Linear X - Probability Y

7

Grain Size Distribution

8

Polar coordinates

9

Bar chart

10

Logarithmic X, Probability Y

11

Probability X, Linear Y

12

Probability X, Logarithmic Y

13

Probability X, Probability Y

14

Triangle Plot

15

N1.85 Hydraulic scale

16

Mercator projection

The high byte of the scaling code contains scaling-specific information. Currently, this value is used only for tripartite grids, grain size distributions, and polar coordinates. For all other scale types, this value is reserved for future use and must be 0.

Tripartite grids

The high byte indicates what units to use for the grid. Supported values are:

Code

 

 

5

 

Hz, inches/sec, inches, and g's

261

 

Hz, feet/sec, feet, and g's

517

 

Hz, mm/sec, millimeters, and g's

773

 

Hz, cm/sec, centimeters, and g's

1029

 

Hz, meters/sec, meters, and g's

1285

 

Period (seconds), inches/sec, inches, and g's

1541

 

Period (seconds), feet/sec, feet, and g's

1797

 

Period (seconds), millimeters/sec, millimeters, and g's

2053

 

Period (seconds), centimeters/sec, centimeters, and g's

2309

 

Period (seconds), meters/sec, meters, and g's

Grain size distributions

The high byte indicates what units the grain sizes are in. Supported values are:

Code

 

 

7

 

Millimeters

263

 

Inches

Polar coordinates

The high byte indicates what units the angular dimensions are in. Supported values are:

Code

 

 

8

 

Radians

264

 

Degrees

 


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