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

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


 

[FillBetween(Curve1,Curve2,Style,R,G,B
|,yref,R2,G2,B2||,"Legend"|,"LegendBelow"||]

JR   Viewer

Fills the area between Curve1 and Curve2 with a hatch pattern of Style and color R,G,B.

Curve2

If Curve2=0 or is equal to Curve1, then the region formed by closing Curve1 (connecting the first and last points) is filled.

If Curve2=-1, then the area between Curve1 and bottom edge of the graph is filled.

If Curve2=-3, then the area between Curve1 and top edge of the graph is filled.

If Curve2=-4, then the area between Curve1 and left edge of the graph is filled.

If Curve2=-5, then the area between Curve1 and right edge of the graph is filled.

If Curve2=-2, then yref specifies the constant Y value for a reference line that serves as a boundary for the fill pattern. In this case R2, G2, B2 specify the color components to use for areas below Y=yref.

Optional parameters "Legend" and "LegendBelow" are the legend entries for the fill areas. "LegendBelow" is only meaningful for Curve2=-2. You cannot include "LegendBelow" without "Legend", though you may specify a blank "Legend" with two successive quotation marks. Fill area legend entries will always follow the legend entries for curves, if present. Valid values for Style are:

-1

 

Solid

0

 

Horizontal lines

1

 

Vertical lines

2

 

45 degree downward

3

 

45 degree upward

4

 

Horizontal-vertical crosshatch

5

 

45 degree crosshatch

 

 


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