📄 line_options.hlp
字号:
{smcl}
{* 01mar2005}{...}
{cmd:help line_options}
{hline}
{* index dot plots}{...}
{* index graph dot}{...}
{title:Title}
{p2colset 5 25 27 2}{...}
{p2col :{hi:[G] {it:line_options}} {hline 2}}Options for determining the look of lines{p_end}
{p2colreset}{...}
{title:Syntax}
{it:line_options}{col 38}description
{hline 70}
{cmdab:lp:attern:(}{it:{help linepatternstyle}}{cmd:)}{...}
{col 38}whether line solid, dashed, etc.
{cmdab:lw:idth:(}{it:{help linewidthstyle}}{cmd:)}{...}
{col 38}thickness of line
{cmdab:lc:olor:(}{it:{help colorstyle}}{cmd:)}{...}
{col 38}color of line
{cmdab:lsty:le:(}{it:{help linestyle}}{cmd:)}{...}
{col 38}overall style of line
{cmdab:psty:le:(}{it:{help pstyle}}{cmd:)}{...}
{col 38}overall plot style, including linestyle
{hline 70}
{pin}
All options are {it:rightmost}; see {help repeated options}.
{title:Description}
{pstd}
The {it:line_options} determine the look of a line in most contexts.
{title:Options}
{phang}
{cmd:lpattern(}{it:linepatternstyle}{cmd:)}
specifies whether the line is solid, dashed, etc.
See {it:{help linepatternstyle}} for a list of available patterns.
{cmd:lpattern()} is not allowed with {cmd:graph} {cmd:pie};
see {helpb graph pie}.
{phang}
{cmd:lwidth(}{it:linewidthstyle}{cmd:)}
specifies the thickness of the line.
See {it:{help linewidthstyle}} for a list of available thicknesses.
{phang}
{cmd:lcolor(}{it:colorstyle}{cmd:)}
specifies the color of the line. See {it:{help colorstyle}} for a
list of available colors.
{phang}
{cmd:lstyle(}{it:linestyle}{cmd:)}
specifies the overall style of the line: its pattern, thickness, and
color.
{pmore}
You need not specify {cmd:lstyle()} just because there is something
you want to change about the look of the line. The other
{it:line_options} will allow you to make changes. You specify
{cmd:lstyle()} when another style exists that is exactly what you
desire or when another style would allow you to specify fewer changes.
{pmore}
See {it:{help linestyle}} for a list of available line styles.
{phang}
{cmd:psytle(}{it:psytle}{cmd:)}
specifies the overall style of the plot, including not only the linestyle,
but all other settings for the look of the plot. Only the
{it:{help linestyle}} affects the look of lines. See
{it:{help pstyle}} for a list of available plot styles.
{title:Remarks}
{pstd}
Lines occur in many contexts and, in almost all of those contexts, the above
options are used to determine the look of the line. For instance, the
{cmd:lcolor()} option in
{phang2}
{cmd:. graph line y x, lcolor(red)}
{pstd}
causes the line through the ({cmd:y},{cmd:x}) points to be drawn in red.
{pstd}
The same option in,
{cmd:. graph line y x, title("My line", box lcolor(red))}
{pstd}
causes the outline drawn around the title's box to be drawn in red. Note that
in the second command, the option {cmd:lcolor(red)} was a suboption to the
{cmd:title()} option.
{title:Also see}
{psee}
Manual: {bf:[G] {it:line_options}}
{psee}
Online:
{help lines};
{helpb graph dot}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -