📄 graph_use.hlp
字号:
{smcl}
{* 07mar2005}{...}
{cmd:help graph use}
{hline}
{title:Title}
{p2colset 5 22 24 2}{...}
{p2col :{hi:[G] graph use} {hline 2}}Display graph stored on disk{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 30 2}
{cmdab:gr:aph}
{cmd:use}
{it:filename}
[{cmd:,}
{cmd:nodraw}
{cmd:name(}{it:name}[{cmd:, replace}]{cmd:)}
{cmdab:sch:eme:(}{it:schemename}{cmd:)}]
{title:Description}
{pstd}
{cmd:graph} {cmd:use} displays (draws) the graph previously saved in a
.gph file and, if the graph was stored in live format, loads it.
{pstd}
If {it:filename} is specified without an extension, {cmd:.gph} is assumed.
{title:Options}
{phang}
{cmd:nodraw}
specifies that the graph not be displayed.
If the graph was stored in live format, it is still loaded;
otherwise, {cmd:graph} {cmd:use} does nothing.
See {it:{help nodraw_option}}.
{phang}
{cmd:name(}{it:name}[{cmd:, replace}]{cmd:)}
specifies the name under which the graph is to be stored in memory,
assuming that the graph was saved in live format.
{cmd:name(Graph, replace)} is the default. If the graph is not stored in
live format, the graph can only be displayed, not loaded, and the
{cmd:name()} is irrelevant. See {it:{help name_option}}.
{phang}
{cmd:scheme(}{it:schemename}{cmd:)}
specifies the scheme to be used; see {help schemes}.
If {cmd:scheme()} is not specified, the default is the {it:schemename}
recorded in the graph being loaded.
{title:Remarks}
{pstd}
Graphs can be saved at the time you draw them either by specifying the
{cmd:saving()} option or subsequently using the {cmd:graph} {cmd:save}
command; see {it:{help saving_option}} and {cmd:graph_save}. Modern
graphs are saved in live format or as-is format; see
{help gph files}. Regardless of how the graph was saved or the format in
which it was saved, {cmd:graph} {cmd:use} can redisplay the graph;
simply type
{cmd:. graph use} {it:filename}
{pstd}
Remarks are presented under the headings
{help graph use##remarks1:Typical use}
{help graph use##remarks1:Advanced use}
{marker remarks1}{...}
{title:Typical use}
{pstd}
In a prior session, you drew a graph by typing
{cmd}. twoway qfitci mpg weight, stdf ||
scatter mpg weight ||
, by(foreign, total row(1)) saving(cigraph){txt}
{pstd}
The result of this was to create file {cmd:cigraph.gph}. At a later date,
you can see the contents of the file by typing
{cmd:. graph use cigraph}
{pstd}
You might now print a copy of the graph.
{marker remarks2}{...}
{title:Advanced use}
{pstd}
In the above example, the graph was saved in live format. Thus when you
typed {cmd:graph} {cmd:use} {cmd:cigraph}, in addition to being redisplayed,
the graph was loaded under the name {cmd:Graph}. You might now use this graph
with the {cmd:graph} {cmd:combine} command. Had you typed
{cmd:. graph use cigraph, name(ci)}
{pstd}
the graph would have been loaded under the name {cmd:ci}.
See {it:{help name_option}} for more information on the use of graphs
stored in memory.
{title:Also see}
{psee}
Manual: {bf:[G] graph use}
{psee}
Online:
{helpb graph combine};
{helpb graph save},
{it:{help saving_option}};
{help gph files},
{it:{help name_option}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -