📄 relativesize.hlp
字号:
{smcl}
{* 02mar2005}{...}
{cmd:help relativesize}
{hline}
{title:Title}
{p2colset 5 25 27 2}{...}
{p2col :{hi:[G] {it:relativesize}} {hline 2}}Choices for sizes of objects{p_end}
{p2colreset}{...}
{title:Syntax}
{it:relativesize}{col 31}description
{hline 70}
{it:#}{...}
{col 31}specify size;
{col 31}size 100 = minimum of width and height of graph;
{col 31}{it:#} must be >= 0, depending on context
{cmd:*}{it:#}{...}
{col 31}specify size change via multiplication;
{col 31}{cmd:*1} means no change, {cmd:*2} twice as large, {cmd:*.5} half;
{col 31}{it:#} must be >= 0, depending on context
{hline 70}
{pin}
Negative sizes are allowed in certain contexts, such as for gaps;
in other cases, such as the size of symbol, the size must be nonnegative, and
negative sizes, if specified, are ignored.
{phang}
Examples:{break}
{it:example}{col 31}description
{hline 70}
{cmd:msize(2)}{...}
{col 31}make marker diameter 2% of {it:g}
{cmd:msize(1.5)}{...}
{col 31}make marker diameter 1.5% of {it:g}
{cmd:msize(.5)}{...}
{col 31}make marker diameter .5% of {it:g}
{cmd:msize(*2)}{...}
{col 31}make marker size twice as large as default
{cmd:msize(*1.5)}{...}
{col 31}make marker size 1.5 times as large as default
{cmd:msize(*.5)}{...}
{col 31}make marker size half as large as default
{cmd:xsca(titlegap(2))}{...}
{col 31}make gap 2% of {it:g}
{cmd:xsca(titlegap(.5))}{...}
{col 31}make gap .5% of {it:g}
{cmd:xsca(titlegap(-2))}{...}
{col 31}make gap -2% of {it:g}
{cmd:xsca(titlegap(-.5))}{...}
{col 31}make gap -.5% of {it:g}
{cmd:xsca(titlegap(*2))}{...}
{col 31}make gap twice as large as default
{cmd:xsca(titlegap(*.5))}{...}
{col 31}make gap half as large as default
{cmd:xsca(titlegap(*-2))}{...}
{col 31}make gap -2 times as large as default
{cmd:xsca(titlegap(*-.5))}{...}
{col 31}make gap -.5 times as large as default
{hline 70}
{pin}
where {it:g} = min(width of graph, height of graph)
{title:Description}
{pstd}
A {it:relativesize} specifies a size relative to the graph (or subgraph) being
drawn. Thus as the size of the graph changes, so does the size of the
object.
{title:Remarks}
{pstd}
{it:relativesize} is allowed, for instance, as a {it:textsizestyle} or
a {it:markersizestyle}{hline 2}see {it:{help textsizestyle}} and
{it:{help markersizestyle}}{hline 2}and as the size of many other things, as
well.
{pstd}
Note that relative sizes are not restricted to being integers; relative
sizes of .5, 1.25, 15.1, etc., are allowed.
{title:Also see}
{psee}
Manual: {bf:[G] {it:relativesize}}
{psee}
Online:
{it:{help markersizestyle}},
{it:{help textsizestyle}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -