📄 scale_option.hlp
字号:
{smcl}
{* 01mar2005}{...}
{cmd:help scale_option}
{hline}
{* index scale() tt option}{...}
{title:Title}
{p2colset 5 25 27 2}{...}
{p2col :{hi:[G] {it:scale_option}} {hline 2}}Option for resizing text, markers, and line widths{p_end}
{p2colreset}{...}
{title:Syntax}
{it:scale_option}{col 43}description
{hline 70}
{cmd:scale(}{it:#}{cmd:)}{...}
{col 43}specify scale; {cmd:scale(1)} default
{hline 70}
{cmd:scale()} is {it:unique}; see {help repeated options}.
{title:Description}
{pstd}
Option {cmd:scale()} makes all the text, markers, and line widths on a graph
larger or smaller.
{title:Option}
{phang}
{cmd:scale(}{it:#}{cmd:)}
specifies a multiplier that affects the size of all text, markers, and
line widths on a graph. {cmd:scale(1)} is the default.
{pmore}
To increase the size of all text, markers, and line widths on a graph by
20%, specify {cmd:scale(1.2)}. To reduce the size of all text, markers,
and line widths on a graph by 20%, specify {cmd:scale(.8)}.
{title:Remarks}
{pstd}
Under {hi:Advanced use} in {it:{help marker_label_options}}, we showed
the following graph,
{cmd}. twoway (scatter lexp gnppc, mlabel(country) mlablv(pos))
(line hat gnppc, sort)
, xsca(log) xlabel(.5 5 10 15 20 25 30, grid)
legend(off)
title("Life expectancy vs. GNP per capita")
subtitle("North, Central, and South America")
note("Data source: World bank, 1998")
ytitle("Life expectancy at birth (years)"){txt}
{it:({stata "gr_example2 markerlabel3":click to run})}{txt}
{* graph markerlabel3}{...}
{pstd}
Here is the same graph with the size of all text, markers, and line widths
increased by 10%:
{cmd}. twoway (scatter lexp gnppc, mlabel(country) mlablv(pos))
(line hat gnppc, sort)
, xsca(log) xlabel(.5 5 10 15 20 25 30, grid)
legend(off)
title("Life expectancy vs. GNP per capita")
subtitle("North, Central, and South America")
note("Data source: World bank, 1998")
ytitle("Life expectancy at birth (years)")
scale(1.1){txt}{right:<-- {it:new} }
{it:({stata "gr_example2 markerlabel4":click to run})}{txt}
{* graph markerlabel4}{...}
{pstd}
All we did was add the option {cmd:scale(1.1)} to the original command.
{title:Also see}
{psee}
Manual: {bf:[G] {it:scale_option}}
{psee}
Online: {helpb graph}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -