Navigation:  Menu Commands > Options Menu >

Fill Between Curves command (Options menu)

JR   Viewer

Print this Topic Previous pageReturn to chapter overviewNext page
Show/Hide Hidden Items

This command allows you to draw a hatch pattern or solid fill:

a)between two curves.
b)between a curve and an edge of the graph or a horizontal line with specified Y value.
c)below the curve to the bottom edge of the graph, only for points that are less than or equal to a specified Y value.
d)that fills an area formed by closing a single curve by connecting the first and last points.

Select the curves to fill between in the 1st Curve and 2nd Curve list boxes. If None is selected for the 1st curve, the fill operation is not performed. To fill an area formed by closing a single curve, select None in the 2nd Curve list box.

The color of the fill may be controlled by clicking on the Color control. Click on one of the 40 predefined colors to select it, or click on More Colors... to specify another color. If Fill to Y= is selected in the 2nd Curve list box, then 1) the primary color becomes optional; if Color Above Yref is not checked then the color control will be hidden; 2) an optional Color Below Yref checkbox is displayed, and similarly, if checked then a second color control is shown that allows you to use a different color for areas below the reference Y value. If when you click OK both Color Above Yref and Color Below Yref are unchecked, the fill will be discarded.

If the User-defined fill pattern is selected, you may create your own hatch pattern by clicking on any of the grid squares in the 8x8 grid pattern. Clicking on a square toggles its state to and from transparent and the color selected with the Color control.

Intersecting Fills

If the Draw only the intersections of all areas box is checked and more than one fill area is specified, then only the overlapping region for all fill areas will be drawn. In this case the color and fill style for the first fill area will be used; all other colors and fill styles are ignored. DPlot will not issue a warning if there is no overlapping area; it will simply not draw any fill. This feature is particularly useful for finding the solution to a set of inequalities.

Without Draw only the intersections of all areas checked:

With Draw only the intersections of all areas checked:

Effect of Amplitude Limits

When filling a single curve (2nd Curve set to None), if the Amplitude Limits command on the Options menu has been used to specify a range in Y outside of which points will be ignored, then the fill region will be broken up into multiple segments if any points in the 1st Curve are outside those limits. For example, in this map of Alaska all data points are in the same curve. The file import plugin used to read this file has inserted intermediate points between land masses with Y values outside the range that the plugin has specified for the amplitude limits (in this case +/- 90 degrees).

Drawing Operation

Colors may be drawn with a simple paint operation (Copy, in which case the final color will be the pattern color) or using a mask operation (Mask), such that the result will be a color with r,g,b components common to both the pattern and the destination. For example, magenta (0x00FF00FF) on cyan (0x0000FFFF) results in blue (0x000000FF). In all cases, fill patterns are drawn before all curves; patterns will not obscure a curve nor will fill colors be combined in any way with curve colors.

Legend formatting

To use subscripts, select the text (highlight using the cursor) you want to format as subscript, then click this button. Shortcut: CTRL+

To use superscripts, select the text (highlight using the cursor) you want to format as superscript, then click this button. Shortcut: CTRL+

To insert special characters (Greek letters, trademark symbols) found in the Symbol font, click on the insertion point, then click this button. Shortcut: CTRL+S

NOTE: On versions of Windows older than Vista, the Symbol font with normal weight may only be available in a horizontal orientation. Bold weight can generally be rotated to any angle. This limitation is of course important for the Y axis label on all plot types, and all axis labels in 3D views.

To make a portion of the text bold, select the text (highlight using the cursor) you want to format as bold, then click this button. Shortcut: CTRL+B

To make a portion of the text italic, select the text (highlight using the cursor) you want to format as italic, then click this button. Shortcut: CTRL+I

To make a portion of the text underlined, select the text (highlight using the cursor) you want to format as underlined, then click this button. Shortcut: CTRL+U

To double the size of one or more characters, select the applicable characters (highlight using the cursor), then click this button. Shortcut: CTRL+2

To use a custom color on a portion of the text, select the text (highlight using the cursor) you want to draw using a different color, then click this button. Shortcut: CTRL+K

Format codes

The formatting buttons simply insert special characters into the text that have specific meaning to DPlot. Use of these buttons is not strictly necessary - you can of course physically type these codes with the same result. Format codes may be nested, so you can have (for example), subscripted Greek characters or subscripts of subscripts. Note that the bold, italic, and underline codes will have no effect if the font already possesses that attribute. In other words, using {\b} on a bold font will not make the font "bolder".

Format

Code

Example

Result

Bold

{\btext}

{\bBold} text

Bold text

Italic

{\itext}

{\iItalic} text

Italic text

Subscript

{\dtext}

P{\dso}

Superscript

{\utext}

X{\u2} + Y{\u2}

Symbol

{\stext}

e{\u(-{\sa}t)}

Underline

{\_text}

{\_underlined} text

underlined text

Enlarged

{\2text}

{\2{\sS}}x

Color

{\cBBGGRRtext}

{\c0000FFRed} Text

Red Text

Overbar

{\otext}

{\oY}=56.23

Dot accent

{\.text}

Flow = {\.V}

Double dot accent

{\:text}

y = y{\d0} + {\.y}t - {\:y}t{\u2}/2

Wingdings

{\w1text}

{\w1N} Danger {\w1N}

Wingdings 2

{\w2text}

{\w2R} Passed

Wingdings 3

{\w3text}

Arrows {\w3!"#$} and\nmore arrows {\w3NOPQ}

 

Related macro commands

FillBetween

 

 


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