📄 graph_dir.hlp
字号:
{smcl}
{* 01mar2005}{...}
{cmd:help graph dir}
{hline}
{title:Title}
{p2colset 5 22 24 2}{...}
{p2col :{hi:[G] graph dir} {hline 2}}List names of graphs in memory and on disk{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 23 2}
{cmdab:gr:aph}
{cmd:dir}
[{it:pattern}]
[{cmd:,}
{it:options}]
{it:options}{col 28}description
{hline 52}
{cmdab:m:emory}{...}
{col 28}list only graphs stored in memory
{cmdab:g:ph}{...}
{col 28}list only graphs stored on disk
{cmdab:d:etail}{...}
{col 28}produce detailed listing
{hline 52}
{pstd}
and where {it:pattern} is as allowed by Stata's {cmd:match()} function:
{cmd:*} means that 0 or more characters go here, and {cmd:?}{space 1}means
that exactly one character goes here; see {help string functions}.
{title:Description}
{pstd}
{cmd:graph} {cmd:dir} lists the names of graphs stored in memory, and
stored on disk in the current directory.
{title:Options}
{phang}
{cmd:memory} and {cmd:gph}
restrict what is listed; {cmd:memory} lists only the names of graphs
stored in memory and {cmd:gph} lists only the names of graphs stored on
disk.
{phang}
{cmd:detail}
specifies that, in addition to the names, the commands that created the
graphs be listed.
{title:Remarks}
{pstd}
See {help graph manipulation} for an introduction to the graph
manipulation commands.
{pstd}
{cmd:graph} {cmd:dir} without options lists in column format
the names of the graphs stored in memory and those stored on disk in
the current directory.
{cmd}. graph dir
{res}{col 13}Graph{col 24}figure1.gph{col 41}large.gph{col 55}s7.gph
{col 13}dot.gph{col 24}figure2.gph{col 41}old.gph{col 55}yx_lines.gph{txt}
{pstd}
Graphs in memory are listed first followed by graphs stored on disk.
In the example above, we have only one graph in memory: {cmd:Graph}.
{pstd}
You may specify a pattern to restrict the files listed:
{cmd}. mydir fig*
{res}{col 13}figure1.gph{col 26}figure2.gph{txt}
{pstd}
The {cmd:detail} option lists the names and the commands that drew the
graphs:
{cmd}. mydir fig*, detail
{txt} name{col 24}command
{hline 60}
{res} figure1.gph{...}
{col 24}{...}
{txt}matrix h-tempjul, msy(p) name(myview)
{res} figure2.gph{...}
{col 24}{...}
{txt}twoway scatter mpg weight, saving(figure2)
{hline 60}
{title:Saved results}
{phang}
{cmd:graph} {cmd:dir} returns in macro {cmd:r(list)} the names of the
graphs.
{title:Also see}
{psee}
Manual: {bf:[G] graph dir}
{psee}
Online:
{help graph manipulation};
{helpb graph describe}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -