📄 name_option.hlp
字号:
{smcl}
{* 01mar2005}{...}
{cmd:help name option}
{hline}
{* index name() tt option}{...}
{title:Title}
{p2colset 5 24 26 2}{...}
{p2col :{hi:[G] {it:name_option}} {hline 2}}Option for naming graph in memory{p_end}
{p2colreset}{...}
{title:Syntax}
{it:name_option}{col 43}description
{hline 70}
{cmd:name(}{it:name}[{cmd:, replace}]{cmd:)}{...}
{col 43}specify name
{hline 70}
{cmd:name()} is {it:unique}; see {help repeated options}.
{title:Description}
{pstd}
Option {cmd:name()} specifies the name of the graph being created.
{title:Option}
{phang}
{cmd:name(}{it:name}[{cmd:, replace}]{cmd:)}
specifies the name of the graph.
If {cmd:name()} is not specified, {cmd:name(Graph, replace)} is assumed.
{pmore}
In fact, {cmd:name(Graph)} has the same effect as
{cmd:name(Graph, replace)} because {cmd:replace} is assumed
when the name is {cmd:Graph}.
For all other {it:names}, you must specify suboption
{cmd:replace} if a graph under that name already exists.
{title:Remarks}
{pstd}
When you type, for instance,
{cmd:. scatter yvar xvar}
{pstd}
that results in you seeing a graph. In addition, the graph is stored in
memory. For instance, try the following: close the Graph window, and then
type
{cmd:. graph display}
{pstd}
Your graph will reappear.
{pstd}
Every time you draw a graph, that previously remembered graph is discarded,
and the new graph replaces it.
{pstd}
You can have more than one graph stored in memory. When you do not specify
the name under which the graph is to be remembered, it is remembered under
the default name {cmd:Graph}. For instance, if you were now to type
{cmd:. scatter y2var xvar, name(g2)}
{pstd}
You would now have two graphs stored in memory: {cmd:Graph} and {cmd:g2}.
If you typed
{cmd:. graph display}
or
{cmd:. graph display Graph}
{pstd}
you would see your first graph. Type
{cmd:. graph display g2}
{pstd}
and you will see your second graph.
{pstd}
Do not confuse Stata's storing of graphs in memory with the saving of graphs to
disk. Were you now to {cmd:exit} Stata, the graphs you have saved in memory
would be gone forever. If you want to save your graphs, you want to specify
the {cmd:saving()} option (see {it:{help saving_option}}) or you want to
use the {cmd:graph} {cmd:save} command (see {helpb graph save}}); either
results in the same outcome.
{pstd}
You can find out what graphs you have in memory using {cmd:graph dir}, drop
them using {cmd:graph drop}, rename them using {cmd:graph rename}, and so on,
and of course, you can redisplay them using {cmd:graph} {cmd:display}. See
{help graph manipulation} for the details on all of those commands.
{pstd}
You can drop all graphs currently stored in memory using
{cmd:graph}
{cmd:drop}
{cmd:_all}
or {cmd:discard}; see
{helpb graph drop}.
{title:Also see}
{psee}
Manual: {bf:[G] {it:name_option}}
{psee}
Online:
{helpb graph display},
{helpb graph drop};
{it:{help saving_option}},
{helpb graph save};
{help graph manipulation}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -