Navigation:  Programmer's Reference > Executing DPlot commands from another application >

VectorPlot 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 or character strings; character string parameters are always bound by double quotation marks.

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.


 

[VectorPlot(curve,AngleSource,MagnitudeSource,ColorLo,ColorHi,SizeLo,SizeHi)]

JR   Viewer

Sets vector plot options for the curve with 1-based index curve. Angular values are retrieved from the AngleSource'th curve; magnitudes from the MagnitudeSource'th curve. If either of these entries is non-positive, the vector plot option is turned off for curve. The AngleSource and MagnitudeSource curves will not be drawn (assuming both entires are positive).

ColorLo and ColorHi are colors mapped to the low and high absolute values of the MagnitudeSource amplitudes. To use the same color for all vectors, set ColorLo and ColorHi to the same values. Colors are in the form blue*65536+green*256+red, where blue, green, and red are between 0 and 255, inclusive. Colors may be specified in hexadecimal notation with a '0x' prefix. For example 0x00FFFF00 is cyan (blue=255, green=255, red=0).

SizeLo and SizeHi are the lengths, in thousandths of inches, of the vectors corresponding to the low and high absolute values of the MagnitudeSource amplitudes.

 

 


Page url: http://www.dplot.com/help/index.htm?vectorplotcommand.htm