Stata 15 help for linepatternstyle

[G-4] linepatternstyle -- Choices for whether lines are solid, dashed, etc.

Syntax

linepatternstyle Description ------------------------------------------------------------------------- solid solid line dash dashed line dot dotted line dash_dot shortdash shortdash_dot longdash longdash_dot blank invisible line "formula" e.g., "-." or "--.." etc. ------------------------------------------------------------------------- A formula is composed of any combination of l solid line _ (underscore) a long dash - (hyphen) a medium dash . short dash (almost a dot) # small amount of blank space -------------------------------------------------------------------------

For a palette displaying each of the above named line styles, type

. palette linepalette [, scheme(schemename)]

Other linepatternstyles may be available; type

. graph query linepatternstyle

to obtain the complete list of linepatternstyles installed on your computer.

Description

A line's look is determined by its pattern, thickness, alignment, and color; see lines. linepatternstyle specifies the pattern.

linepatternstyle is specified via options named

<object><l or li or line>pattern()

or

<l or li or line>pattern()

For instance, for connecting lines (the lines used to connect points in a plot) used by graph twoway function, the option is named lpattern():

. twoway function ..., lpattern(linepatternstyle) ...

Sometimes you will see that a linepatternstylelist is allowed:

. twoway line ..., lpattern(linepatternstylelist) ...

A linepatternstylelist is a sequence of linepatterns separated by spaces. Shorthands are allowed to make specifying the list easier; see [G-4] stylelists.

Remarks

Although you may choose a prerecorded pattern (for example, solid or dash), you can build any pattern you wish by specifying a line-pattern formula. For example,

Formula Description ------------------------------------------------------------------------- "l" solid line, same as solid "_" a long dash "_-" a long dash followed by a short dash "_--" a long dash followed by two short dashes "_--_#" a long dash, two short dashes, a long dash, and a bit of space etc. -------------------------------------------------------------------------

When you specify a formula, you must enclose it in double quotes.


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index