Navigation:  Menu Commands > Options Menu >

Reference Lines command (Options menu)

JR   Viewer

Print this Topic Previous pageReturn to chapter overviewNext page

Displays a dialog box that allows you to specify up to 50 horizontal and/or vertical lines on an XY plot or a 2D view of 3D data at specified constant X or Y values, or a circle with a constant radius or radial line at a fixed angle on a polar plot, or lines on a 1D plot as specified Y values. Each line may have a distinct color, width, and style.

You can click on the plot to select the location of a reference line. This feature is enabled when any control within the "At Value" box has the keyboard focus.

You can also use text placeholders for the location of the reference line. For example, with "Y=" selected if you enter "=$YMAX" then the reference line will be drawn at the maximum Y value; with "X=" selected if you enter "=$XYMAX" then the line will be placed at the X coordinate where the maximum Y value occurs. (If you use text placeholders or any other equation in this way, the expression is evaluated and translated to a number when you click OK. In other words, with "=$YMAX" as the reference line value, the line will not shift if the Y values are changed in any way. This differs from using text placeholders in a text entry like title lines or the legend, where the evaluation takes place at the time the plot is rendered.)

The Frame and Opaque checkboxes are only relevant if a Label is entered and "Draw label on plot..." is checked. "Draw label on plot..." is not applicable to 2D views of 3D data, for which the label will always be drawn centered on the reference line.

Check Hide to hide a specific reference line (but not delete it). This option might be useful if you have more than a few reference lines and want to hide several for a specific application but not delete them.

Label

Text associated with the line that will appear in the plot legend, or centered on the line if "Draw label on plot..." is checked. If you do not want a label entry for the line, leave this entry blank. This entry may include the same special formatting codes used in the legend and title lines:

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

DeleteRefLine

RefLine

 

 


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