📄 marginstyle.hlp
字号:
{smcl}
{* 01mar2005}{...}
{cmd:help marginstyle}
{hline}
{* index marginstyle it}{...}
{title:Title}
{p2colset 5 24 26 2}{...}
{p2col :{hi:[G] {it:marginstyle}} {hline 2}}Choices for size of margins{p_end}
{p2colreset}{...}
{title:Syntax}
{it:marginstyle} description
{hline 61}
{cmd:zero} no margin
{cmd:tiny} tiny margin, all four sides (smallest)
{cmd:vsmall}
{cmd:small}
{cmd:medsmall}
{cmd:medium}
{cmd:medlarge}
{cmd:large}
{cmd:vlarge} very large margin, all four sides (largest)
{cmd:bottom} {cmd:medium} on the bottom
{cmd:top} {cmd:medium} on the top
{cmd:top_bottom} {cmd:medium} on bottom and top
{cmd:left} {cmd:medium} on the left
{cmd:right} {cmd:medium} on the right
{cmd:sides} {cmd:medium} on left and right
{it:#} {it:#} {it:#} {it:#} specified margins; left, right, bottom, top
{it:marginexp} specified margin or margins
{hline 61}
{pstd}
where {it:marginexp} is one or more elements of the form
{c -(}{cmd:l}|{cmd:r}|{cmd:b}|{cmd:t}{c )-}[{it:<space>}][{cmd:+}|{cmd:-}|{cmd:=}]{it:#}
{phang}
such as
{cmd:l=5}
{cmd:l=5 r=5}
{cmd:l+5}
{cmd:l+5 r=7.2 b-2 t+1}
{pstd}
In both the {it:#} {it:#} {it:#} {it:#} syntax and the
{c -(}{cmd:l}|{cmd:r}|{cmd:b}|{cmd:t}{c )-}[{cmd:+}|{cmd:-}|{cmd:=}]{it:#}
syntax, {it:#} is interpreted as a percentage of the minimum of the width and
height of the graph. Thus a distance of 5 is the same in both the vertical
and horizontal directions.
{pstd}
When applying margins to rotated textboxes, note that the terms
left, right, bottom, and top refer to the box before rotation;
see {it:{help textbox_options}}.
{pstd}
Other {it:marginstyles} may be available; type
{cmd:.} {bf:{stata graph query marginstyle}}
{pstd}
to obtain the complete list of {it marginstyles} installed on your computer.
If other {it:marginstyles} do exist, they are merely names associated
with {it:#} {it:#} {it:#} {it:#} margins.
{title:Description}
{pstd}
{it:marginstyle} is used to specify margins (areas to be left unused).
{title:Remarks}
{pstd}
{it:marginstyle} is used, for instance, in the {cmd:margin()} suboption of
{cmd:title()}:
{phang2}
{cmd:. graph} ...{cmd:, title("My title", margin(}{it:marginstyle}{cmd:))} ...
{pstd}
In this case, {it:marginstyle} specifies the margin between the text and the
borders of the textbox that will contain the text (which box will
ultimately be placed on the graph). See {it:{help title_options}} and
{it:{help textbox_options}}.
{pstd}
As another example, {it:marginstyle} is allowed by the {cmd:margin()} suboption
of {cmd:graphregion()}:
{phang2}
{cmd:. graph} ...{cmd:, graphregion(margin(}{it:marginstyle}{cmd:))} ...
{pstd}
In this case, it allows you to put margins around the plot region within the
graph. See {hi:Controlling the aspect ratio} in {it:{help region_options}}
for an example.
{title:Also see}
{psee}
Manual: {bf:[G] {it:marginstyle}}
{psee}
Online:
{it:{help textbox_options}},
{it:{help region_options}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -