Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: issue with grc1leg for graph bar


From   tashi lama <[email protected]>
To   <[email protected]>
Subject   st: issue with grc1leg for graph bar
Date   Thu, 23 Aug 2012 16:14:03 +0000

Hello all, 
     graph hbar (sum) doc_published doc_read doc_unread, nolabel legend(row(1))  name(tt1, replace) nodraw
     graph hbar doc_published doc_unread doc_read, over(text_value) nolabel stack name(tt2, replace) nodraw
     grc1leg tt1 tt2, legendfrom(tt1) 

The above is part of an adofile and when I run adofile in windows, stata displays tt1 then vanishes, stata displays tt2 and vanishes before finally displaying tt1 and tt2. I was thinking stata wouldn't tease me with tt1 and tt2 but would just display the final one. The funny thing is when I do graph pie instead of graph bar
     graph pie doc_published doc_read doc_unread,  name(tt1, replace) nodraw
     graph pie doc_published doc_unread, name(tt2, replace) nodraw
     grc1leg tt1 tt2, legendfrom(tt1) 
stata only displays me the final image which is exactly I want. COuld someone please explain? 

Thanks, 
Tashi  		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index