Statalist


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

st: RE: Automating wrapping of text in graphs?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Automating wrapping of text in graphs?
Date   Fri, 5 Oct 2007 17:48:24 +0100

I think you would need to pre-process an entire text string 
using extended macro functions, especially -piece-. 

Justification is often best done by using -place()- 
as a suboption in my experience. 

Nick 
[email protected] 

Venable
 
> Is it possible to automate the wrapping of text in Stata graphics? I
> am familiar with the trick of breaking blocks of text up manually
> using separate double-quotes, e.g.
> note("Comment #1" "Comment #2", span)
> will put Comment 1 on the first line and comment 2 on a second line.
> 
> However, I often include macros in my notes, e.g.
> note("Notes: Sample: `sample_note'; Years: `sample_years_note';
> Regression weighted by `weights_note'", span)
> so the length of individual lines will vary, which can lead to poor
> results from the above manual technique.
> 
> (Along the same lines, is it possible to justify text at the left and
> right margins?)
 

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