Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: graph combine and a graph named n


From   "German Rodriguez" <[email protected]>
To   <[email protected]>
Subject   st: graph combine and a graph named n
Date   Wed, 4 Oct 2006 21:48:46 -0400

This curious result, where graph combine doesn't recognize a memory graph
named n, came up in some work and is easily reproduced

clear
sysuse lifeexp
scatter lexp gnppc, name(a)
scatter lexp gnppc, xscale(log) name(n)
graph combine a n 

Stata will complain that "n is not a memory graph". This also happens if you
try -graph combine n a-
 
However, -graph display n- works fine, showing that the graph exists, and
-graph describe n- gives all the details, starting with "n stored in
memory".
 
The problem happens only if the graph is called n; you can substitute any
single-letter name other than n in the fragment above, for example the more
logical b, and it will work fine. 

Obviously graph combine doesn't like graphs named n. What am I missing? 

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index