📄 markerstyle.hlp
字号:
{smcl}
{* 07mar2005}{...}
{cmd:help markerstyle}
{hline}
{* index markerstyle it}{...}
{title:Title}
{p2colset 5 24 26 2}{...}
{p2col :{hi:[G] {it:markerstyle}} {hline 2}}Choices for overall look of markers{p_end}
{p2colreset}{...}
{title:Syntax}
{it:markerstyle}{col 30}description
{hline 61}
{cmd:p1} - {cmd:p15}{...}
{col 30}used by first - fifteenth "scatter" plot
{cmd:p1box} - {cmd:p15box}{...}
{col 30}used by first - fifteenth "box" plot
{cmd:p1dot} - {cmd:p15dot}{...}
{col 30}used by first - fifteenth "dot" plot
{hline 61}
{pin}
Other {it:markerstyles} may be available; type
{cmd:.} {bf:{stata graph query markerstyle}}
{pin}
to obtain the full list installed on your computer.
{title:Description}
{pstd}
Markers are the ink used to mark where points are on a plot.
{it:markerstyle} defines the symbol, size, and color of a marker.
See {it:{help marker_options}} for more information.
{pstd}
{it:markerstyle} is specified in the {cmd:mstyle()} option,
{phang2}
{cmd:. graph} ...{cmd:, mstyle(}{it:markerstyle}{cmd:)} ...
{pstd}
In some cases, you will see that a {it:markerstylelist} is allowed:
{phang2}
{cmd:. twoway scatter} ...{cmd:, mstyle(}{it:markerstylelist}{cmd:)} ...
{pstd}
A {it:markerstylelist} is a sequence of {it:markerstyles} separated by
spaces. Shorthands are allowed to make specifying the list easier;
see {it:{help stylelists}}.
{title:Remarks}
{pstd}
Remarks are presented under the headings
{help markerstyle##remarks1:What is a marker?}
{help markerstyle##remarks2:What is a markerstyle?}
{help markerstyle##remarks3:You do not have to specify a markerstyle}
{help markerstyle##remarks4:Specifying a markerstyle can be convenient}
{help markerstyle##remarks5:What are numbered styles?}
{marker remarks1}{...}
{title:What is a marker?}
{pstd}
Markers are the ink used to mark where points are on a plot.
Some people use the word point or symbol, but a point is where the
marker is placed, and a symbol is merely one characteristic of a marker.
{marker remarks2}{...}
{title:What is a markerstyle?}
{pstd}
Markers are defined by five attributes:
{phang2}
1. {it:symbol} {hline 2} the shape of the marker;
see {it:{help symbolstyle}}
{phang2}
2. {it:markersize} {hline 2} the size of the marker;
see {it:{help markersizestyle}}
{phang2}
3. overall color of the marker;
see {it:{help colorstyle}}
{phang2}
4. interior (fill) color of the marker;
see {it:{help colorstyle}}
{phang2}
5. the line that outlines the shape of the marker:
{p_end}
{phang3}
a. the overall style of the line;
see {it:{help linestyle}}
{phang3}
b. the thickness of the line;
see {it:{help linewidthstyle}}
{phang3}
c. the color of the line;
see {it:{help colorstyle}}
{pstd}
The {it:markerstyle} defines all five (seven) of these attributes.
{marker remarks3}{...}
{title:You do not have to specify a markerstyle}
{pstd}
The {it:markerstyle} is specified via the
{cmd:mstyle(}{it:markerstyle}{cmd:)}
{pstd}
option. Correspondingly, you will find seven other options available:
{cmd:msymbol(}{it:symbolstyle}{cmd:)}
{cmd:msize(}{it:markersizestyle}{cmd:)}
{cmd:mcolor(}{it:colorstyle}{cmd:)}
{cmd:mfcolor(}{it:colorstyle}{cmd:)}
{cmd:mlstyle(}{it:linestyle}{cmd:)}
{cmd:mlwidth(}{it:linewidthstyle}{cmd:)}
{cmd:mlcolor(}{it:colorstyle}{cmd:)}
{pstd}
You specify the {it:markerstyle} when a style exists that is exactly what
you want or when another style would allow you to specify fewer
changes to obtain what you want.
{marker remarks4}{...}
{title:Specifying a markerstyle can be convenient}
{pstd}
Consider the command
{cmd:. scatter y1var y2var xvar}
{pstd}
Say that you wanted the markers for y2var versus xvar to be the same as y1var
versus xvar. You might set all the characteristics of the marker for y1var
versus xvar and then set all the characteristics of the marker for y2var
versus xvar to be the same. It would be easier, however, to type
{phang2}
{cmd:. scatter y1var y2var xvar, mstyle(p1 p1)}
{pstd}
{cmd:mstyle()} is the option that specifies the overall style
of the marker. When you do not specify the {cmd:mstyle()} option, results
are the same as if you specified
{phang2}
{cmd:mstyle(p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15)}
{pstd}
where the extra elements are ignored. In any case, {cmd:p1} is one set of
marker characteristics, {cmd:p2} another, and so on.
{pstd}
Say that you wanted y2var versus xvar to look like y1var versus xvar, except that you
wanted the symbols to be green; you could type
{phang2}
{cmd:. scatter y1var y2var xvar, mstyle(p1 p1) mcolor(. green)}
{pstd}
There is nothing special about the {it:markerstyles} {cmd:p1}, {cmd:p2}, ...;
they merely specify sets of marker attributes just like any other
named {it:markerstyle}. Type
{cmd:. graph query markerstyle}
{pstd}
to find out what other marker styles are available. You may find something
pleasing, and if so, that is more easily specified than each of the individual
options to modify the shape, color, size, ... elements.
{* index numbered styles}{...}
{marker remarks5}{...}
{title:What are numbered styles?}
{phang}
{cmd:p1} - {cmd:p15} are the default styles for marker labels
in {helpb twoway} graphs that support marker labels, for example,
{helpb twoway scatter},
{helpb twoway dropline}, and
{helpb twoway connected}. {cmd:p1} is used for the
first plot, {cmd:p2} for the second, and so on.
{phang}
{cmd:p1box} - {cmd:p15box} are the default styles used for markers
showing the outside values on {help graph box:box charts}.
{cmd:p1box} is used for the outside values on the first set of boxes,
{cmd:p2box} for the second set, and so on.
{pstd}
The "look" defined by a numbered style, such as {cmd:p1},
{cmd:p3dot}, etc.{hline 2}and by "look" we include such things as color,
size, symbol, etc.{hline 2}is determined by the
{help schemes:scheme} selected.
{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 second set of markers on a graph look like the first.
See {bf:Specifying a markerstyle can be convenient} above for an
example.
{title:Also see}
{psee}
Manual: {bf:[G] {it:markerstyle}}
{psee}
Online:
{it:{help marker_options}};
{it:{help symbolstyle}},
{it:{help colorstyle}},
{it:{help markersizestyle}},
{it:{help linewidthstyle}},
{it:{help markerstyle}},
{it:{help linestyle}};
{it:{help stylelists}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -