📄 area_options.hlp
字号:
{smcl}
{* 03mar2005}{...}
{cmd:help area_options}
{hline}
{* index dot plots}{...}
{* index graph dot}{...}
{title:Title}
{p2colset 5 25 27 2}{...}
{p2col :{hi:[G] {it:area_options}} {hline 2}}Options for specifying the look of special areas{p_end}
{p2colreset}{...}
{title:Syntax}
{it:area_options}{col 39}description
{hline 70}
{cmdab:col:or:(}{it:{help colorstyle}}{cmd:)}{...}
{col 39}outline and fill color
{cmdab:fc:olor:(}{it:{help colorstyle}}{cmd:)}{...}
{col 39}fill color
{cmdab:lc:olor:(}{it:{help colorstyle}}{cmd:)}{...}
{col 39}outline color
{cmdab:lw:idth:(}{it:{help linewidthstyle}}{cmd:)}{...}
{col 39}thickness of outline
{cmdab:lp:attern:(}{it:{help linepatternstyle}}{cmd:)}{...}
{col 39}outline pattern (solid, dashed, etc.)
{cmdab:lsty:le:(}{it:{help linestyle}}{cmd:)}{...}
{col 39}overall look of outline
{cmdab:asty:le:(}{it:{help areastyle}}{cmd:)}{...}
{col 39}overall look of area, all settings above
{cmdab:psty:le:(}{it:{help pstyle}}{cmd:)}{...}
{col 39}overall plot style, including areastyle
{help advanced_options:{bf:recast(}{it:newplottype}{bf:)}}{...}
{col 39}advanced; treat plot as {it:newplottype}
{hline 70}
{pin}
All options are {it:merged-implicit}; see
{help repeated options}.
{title:Description}
{pstd}
The {it:area_options} determine the look of, for instance, the areas created
by {cmd:twoway area} or the "rectangles" used by {cmd:graph} {cmd:dot}. The
{it:area_options} and the {it:{help barlook_options}} are synonymous when used
on {cmd:graph twoway} and may be used interchangeably.
{title:Options}
{phang}
{cmd:color(}{it:colorstyle}{cmd:)}
specifies a single color to be used both to outline the shape of the
area and to fill its interior.
See {it:{help colorstyle}} for a list of color choices.
{phang}
{cmd:fcolor(}{it:colorstyle}{cmd:)}
specifies the color to be used to fill the interior of the area.
See {it:{help colorstyle}} for a list of color choices.
{phang}
{cmd:lcolor(}{it:colorstyle}{cmd:)}
specifies the color to be used to outline the area.
See {it:{help colorstyle}} for a list of color choices.
{phang}
{cmd:lwidth(}{it:linewidthstyle}{cmd:)}
specifies the thickness of the line to be used to outline the area.
See {it:{help linewidthstyle}} for a list of choices.
{phang}
{cmd:lpattern(}{it:linepatternstyle}{cmd:)}
specifies whether the line used to outline the area is solid, dashed,
etc.
See {it:{help linepatternstyle}} for a list of pattern choices.
{phang}
{cmd:lstyle(}{it:linestyle}{cmd:)}
specifies the overall style of the line used to outline the area,
including its pattern (solid, dashed, etc.), thickness, and color.
The three options listed above allow you to change the line's attributes,
but {cmd:lstyle()} is the starting point.
See {it:{help linestyle}} for a list of choices.
{phang}
{cmd:astyle(}{it:areastyle}{cmd:)}
specifies the overall look of the area. The options listed above allow
you to change each attribute, but {cmd:style()} provides a starting
point.
{pmore}
You need not specify {cmd:style()} just because there is something you
want to change. You specify {cmd:style()} when another style exists that
is exactly what you desire or when another style would allow you to
specify fewer changes to obtain what you want.
{pmore}
See {it:{help areastyle}} for a list of available area styles.
{phang}
{cmd:pstyle(}{it:pstyle}{cmd:)}
specifies the overall style of the plot, including not only the areastyle,
but all other settings for the look of the plot. Only the
{it:{help areastyle}} affects the look of areas. See
{it:{help pstyle}} for a list of available plot styles.
{phang}
{cmd:recast(}{it:newplottype}{cmd:)}
is an advanced option allowing the plot to be recast from one type to
another, for example, from an {help twoway area:area plot} to
a {help twoway line:line plot}; see help
{it:{help advanced options}}. Most, but not all, plots allow
{cmd:recast()}.
{title:Remarks}
{pstd}
Remarks are presented under the headings
{help area_options##remarks1:Use with twoway}
{help area_options##remarks2:Use with graph dot}
{marker remarks1}{...}
{title:Use with twoway}
{pstd}
{it:area_options} are allowed as options with any {cmd:graph twoway} plottype
that creates shaded areas, for example, {cmd:graph} {cmd:twoway} {cmd:area} and
{cmd:graph} {cmd:twoway} {cmd:rarea}, as in
{phang2}
{cmd:. graph twoway area} {it:yvar} {it:xvar}{cmd:, color(blue)}
{pstd}
The above would set the area enclosed by {it:yvar} and the x-axis to be blue;
see {helpb twoway area} and {helpb twoway rarea}.
{pstd}
The {cmd:lcolor()}, {cmd:lwidth()}, {cmd:lpattern()}, and {cmd:lstyle()}
options are also used to specify how plotted lines and spikes look for all of
{cmd:graph} {cmd:twoway}'s
{help graph twoway##rangeplots:range plots},
{help graph twoway##pcplots:paired-coordinate plots}, and for
{help graph twoway##barplots:area plots},
{help graph twoway##barplots:bar plots},
{help graph twoway##barplots:spike plots}, and
{help graph twoway##barplots:dropline plots}.
For example,
{phang2}
{cmd:. graph twoway rspike} {it:y1var} {it:y2var}
{it:xvar}{cmd:, lcolor(red)}
{pstd}
will set the color of the horizontal spikes between values of {it:y1var} and
{it:y2var} to red.
{marker remarks2}{...}
{title:Use with graph dot}
{pstd}
If you specify {cmd:graph} {cmd:dot}'s {cmd:linetype(rectangle)} option,
the dot chart will be drawn with rectangles substituted for the dots.
In that case, the {it:area_options} determine the look of the
rectangle. The {it:area_options} are specified inside {cmd:graph} {cmd:dot}'s
{cmd:rectangles()} option:
{phang2}
{cmd:. graph dot} ...{cmd:,} ... {cmd:linetype(rectangle) rectangles(}{it:area_options}{cmd:)} ...
{pstd}
If, for instance, you wanted to make the rectangles green, you could
specify
{phang2}
{cmd:. graph dot} ...{cmd:,} ... {cmd:linetype(rectangle) rectangles(fcolor(green))} ...
{title:Also see}
{psee}
Manual: {bf:[G] {it:area_options}}
{psee}
Online: {helpb graph dot}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -