Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: RE: Graph truncates axis labels and titles


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   "Jonas Dahlqvist" <Jonas.Dahlqvist@ihh.hj.se>
Subject   st: RE: RE: RE: Graph truncates axis labels and titles
Date   Wed, 17 Nov 2004 16:12:00 -0000

No, this cognoscento (?) has egg on his face, 
because he gave the wrong answer. 

... b2ti(1234567890123456789012345678901234567890) 

works, so the limit is only partial. 

A few experiments indicate: 

1. When Stata 7's -graph- looks inside a variable label 
for a default title, it stops at 32 characters. 

2. But otherwise -graph- will accept titles longer than 
that. 

3. The answer is to subvert -graph- by doing the 
reading of variable labels outside it. 

graph myvar, histogram b2("`: variable label myvar'") 

should work to get what you want. The 

`:   ' 

business was not documented in Stata 7, but was 
implemented at that time, as I recall. 

4. Another answer is just to type the desired title 
explicitly. 

Nick 
n.j.cox@durham.ac.uk 

Jonas Dahlqvist 
 
> Didn't get the last part, but I am glad to see that one of 
> the STATA cognoscenti corroborates my suspicion about this 
> limitation in the STATA 7. 
> 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index