📄 linepatternstyle.hlp
字号:
{smcl}
{* 01mar2005}{...}
{cmd:help linepatternstyle}
{hline}
{* index linepatternstyle it}{...}
{title:Title}
{p2colset 5 29 31 2}{...}
{p2col :{hi:[G] {it:linepatternstyle}} {hline 2}}Choices for whether lines are solid, dashed, etc.{p_end}
{p2colreset}{...}
{title:Syntax}
{it:linepatternstyle}{col 30}description
{hline 50}
{cmd:solid}{...}
{col 30}solid line
{cmd:dash}{...}
{col 30}dashed line
{cmd:dot}{...}
{col 30}dotted line
{cmd:dash_dot}
{cmd:shortdash}
{cmd:shortdash_dot}
{cmd:longdash}
{cmd:longdash_dot}
{cmd:blank}{...}
{col 30}invisible line
{cmd:"}{it:formula}{cmd:"}{...}
{col 30}e.g., {cmd:"-."} or {cmd:"--.."} etc.
{hline 50}
A {it:formula} is composed of any combination of
{cmd:l} solid line
{cmd:_} (underscore) a long dash
{cmd:-} (hyphen) a medium dash
{cmd:.} short dash (almost a dot)
{cmd:#} small amount of blank space
{hline 50}
{pin}
For a palette displaying each of the above named line styles, type
{cmd:.} {bf:{stata palette linepalette}} {...}
[{cmd:,} {cmdab:sch:eme:(}{it:schemename}{cmd:)}]
{pin}
Other {it:linepatternstyles} may be available; type
{phang3}
{cmd:. {bf:{stata graph query linepatternstyle}}}
{pin}
to obtain the complete list of {it:linepatternstyles} installed on your
computer.
{title:Description}
{pstd}
A line's look is determined by its pattern, thickness, and color; see
{help lines}. {it:linepatternstyle} specifies the pattern.
{pstd}
{it:linepatternstyle} is specified via options named
{phang2}
<{it:object}><{cmd:l} or {cmd:li} or {cmd:line}>{cmd:pattern()}
{pstd}
or
<{cmd:l} or {cmd:li} or {cmd:line}>{cmd:pattern()}
{pstd}
For instance, in the case of connecting lines (the lines used to connect
points in a plot) used by {cmd:graph} {cmd:twoway} {cmd:function}, the option
is named {cmd:lpattern()}:
{phang2}
{cmd:. twoway function} ...{cmd:, lpattern(}{it:linepatternstyle}{cmd:)} ...
{pstd}
In some cases, you will see that a {it:linepatternstylelist} is allowed:
{phang2}
{cmd:. twoway line} ...{cmd:, lpattern(}{it:linepatternstylelist}{cmd:)} ...
{pstd}
A {it:linepatternstylelist} is a sequence of {it:linepatterns} separated by
spaces. Shorthands are allowed to make specifying the list easier;
see {it:{help stylelists}}.
{title:Remarks}
{pstd}
While you may choose a prerecorded pattern (e.g., {cmd:solid} or {cmd:dash}),
understand that you can build any pattern you wish by specifying a
line-pattern formula. For example,
formula Description
{hline 68}
{cmd:"l"} solid line, same as {cmd:solid}
{cmd:"_"} a long dash
{cmd:"_-"} a long dash followed by a short dash
{cmd:"_--"} a long dash followed by two short dashes
{cmd:"_--_#"} a long dash, two short dashes, a long dash, and a bit
of space
{it:etc.}
{hline 68}
{pstd}
When you specify a formula, you must enclose it in double quotes.
{title:Also see}
{psee}
Manual: {bf:[G] {it:linepatternstyle}}
{psee}
Online: {help lines};
{it:{help linewidthstyle}},
{it:{help colorstyle}},
{it:{help linestyle}};
{it:{help connectstyle}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -