📄 areastyle.hlp
字号:
{smcl}
{* 07mar2005}{...}
{cmd:help areastyle}
{hline}
{title:Title}
{p2colset 5 22 24 2}{...}
{p2col :{hi:[G] {it:areastyle}} {hline 2}}Choices for look of regions{p_end}
{p2colreset}{...}
{title:Syntax}
{it:areastyle}{col 28}description
{hline 62}
{cmd:background}{...}
{col 28}determined by scheme
{cmd:foreground}{...}
{col 28}determined by scheme
{cmd:outline}{...}
{col 28}{cmd:foreground} outline with no fill
{cmd:plotregion}{...}
{col 28}default for plot regions
{cmd:histogram}{...}
{col 28}default used for bars of histograms
{cmd:ci}{...}
{col 28}default used for confidence interval
{cmd:ci2}{...}
{col 28}default used for second confidence interval
{cmd:none}{...}
{col 28}no outline and no background color
{cmd:p1bar} - {cmd:p15bar}{...}
{col 28}used by first - fifteenth "bar" plot
{cmd:p1box} - {cmd:p15box}{...}
{col 28}used by first - fifteenth "box" plot
{cmd:p1pie} - {cmd:p15pie}{...}
{col 28}used by first - fifteenth "pie" plot
{cmd:p1area} - {cmd:p15area}{...}
{col 28}used by first - fifteenth "area" plot
{cmd:p1} - {cmd:p15}{...}
{col 28}used by first - fifteenth "other" plot
{hline 62}
{p 8 8 2}
Other {it:areastyles} may be available; type
{cmd:.} {bf:{stata graph query areastyle}}
{p 8 8 2}
to obtain the complete list of {it:areastyles} installed on your computer.
{title:Description}
{pstd}
The shape of the area is determined by context. The {it:areastyle}
determines whether the area is to be outlined and filled and, if so, how and
in what color.
{title:Remarks}
{pstd}
Remarks are presented under the headings
{help areastyle##remarks1:Overview of areastyles}
{help areastyle##remarks2:Numbered styles}
{help areastyle##remarks3:Using numbered styles}
{help areastyle##remarks4:When to use areastyles}
{marker remarks1}{...}
{title:Overview of areastyles}
{pstd}
{it:areastyle} is used to determine the look of
{phang}
1. the entire region in which the graph appears{break}
(see option {cmd:style(}{it:areastyle}{cmd:)} in
{it:{help region_options}})
{phang}
2. bars{break}
(see option {cmd:bstyle(}{it:areastyle}{cmd:)} in {helpb graph bar} or
{helpb twoway bar})
{phang}
3. an area filled under a curve{break}
(see option {cmd:bstyle()} in {helpb twoway area} or
{helpb twoway rarea})
{phang}
4. Most other enclosed areas, such as the boxes in
{help graph box:box plots}
{pstd}
For an example using {it:areastyle} {cmd:none}, see
{hi:Suppressing the border around the plot region} in
{it:{help region_options}}.
{* index numbered styles}{...}
{marker remarks2}{...}
{title:Numbered styles}
{phang}
{cmd:p1bar} - {cmd:p15bar} are the default styles used for bar charts,
including {helpb twoway bar:twoway bar} charts and
{help graph bar:bar charts}. {cmd:p1bar} is used for filling and
outlining the first set of bars, {cmd:p2bar} for the second, and so
on.
{phang}
{cmd:p1box} - {cmd:p15box} are the default styles used for
{help graph box:box charts}. {cmd:p1box} is used for filling and
outlining the first set of boxes, {cmd:p2box} for the second, and so
on.
{phang}
{cmd:p1pie} - {cmd:p15pie} are the default styles used for
{help graph pie:pie charts}. {cmd:p1pie} is used for filling the
first pie slice, {cmd:p2pie} for the second, and so on.
{phang}
{cmd:p1area} - {cmd:p15area} are the default styles used for area charts,
including {helpb twoway area:twoway area} charts and
{helpb twoway rarea:twoway rarea} charts. {cmd:p1area} is used for
filling and outlining the first filled area, {cmd:p2area} for the
second, and so on.
{phang}
{cmd:p1} - {cmd:p15} are the default area styles used for other plot types,
including
{helpb twoway dropline} charts,
{helpb twoway spike} charts,
{helpb twoway rspike} charts,
{helpb twoway rcap} charts,
{helpb twoway rcapsym} charts, and
{helpb twoway rline} charts.
{cmd:p1} is used for filling and outlining the first plot,
{cmd:p2} for the second, and so on. Note that for all of the plots
listed above, only lines are drawn, so the shade settings have no
effect.
{marker remarks3}{...}
{title:Using numbered styles}
{pstd}
The look defined by a numbered style, such as {cmd:p1bar},
{cmd:p2area}, etc., is determined by the {help schemes:scheme}
selected. By "look" we mean such things as color, width of lines,
patterns used, etc.
{pstd}
Numbered styles provide default "looks" that can be
controlled by a scheme. They can also be useful when you wish to
make, say, the third element on a graph look like the first. You can,
for example, specify that the third bar on a bar graph be drawn with
the style of the first bar by specifying the option
{cmd:barstyle(3, bstyle(p1bar))}.
{marker remarks4}{...}
{title:When to use areastyles}
{pstd}
You can often achieve an identical result by specifying an {it:areastyle}
or using more specific options, such as {cmd:fcolor()} or {cmd:lwidth()},
that change the components of an areastyle{hline 2}the fill color and outline
attributes. You can even specify an {it:areastyle} as the base and then
modify the attributes using more specific options. It is often easiest to
specify options that affect only the fill color or a single outline
characteristic rather than to specify an areastyle. If, however, you are trying
to make many elements on a graph look the same, specifying the overall
{it:areastyle} may be preferred.
{title:Also see}
{psee}
Manual: {bf:[G] {it:areastyle}}
{psee}
Online: {it:{help region_options}};
{helpb graph bar},
{helpb graph pie},
{helpb twoway area},
{helpb twoway bar},
{helpb twoway rarea}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -