Ricardo Ovaldia, MS
> -combine- before my first
> post and got an error:
> . webuse auto
> (1978 Automobile Data)
>
> . graph twoway scatter mpg price, saving(g1,replace)
> (file g1.gph saved)
>
> . graph twoway scatter mpg weight,
> saving(g2,replace)
> (file g2.gph saved)
>
> . graph combine g1 g2
> g1 is not a memory graph
> invalid syntax
> invalid syntax
> r(198);
>
> However, I just did it again except I included the
> -gph- extension and that work.
>
> So:
>
> -graph combine g1 g2- does not work
>
> but
> -graph combine g1.gph g2.gph- does work.
>
> Is this a bug? Shouldn't it always work?
It's not a bug.
Stata can store graphs
in memory and Stata can save graphs
to a file of your specification. That is
not one and the same thing, but
different things.
It is the difference, in particular, between the result
of name() and that of saving().
The on-line help explains the different
syntaxes arising.
Nick
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/