Statalist The Stata Listserver


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

st: wrap lines in title (subtitle, caption) with macro names as text


From   "Christian Mackenrodt" <[email protected]>
To   [email protected]
Subject   st: wrap lines in title (subtitle, caption) with macro names as text
Date   Tue, 20 Mar 2007 13:30:30 +0100

Hi,

I plot scatter plots with a loop and I use the variable label as caption. So far, so good. Sometimes the label is too long and I have to wrap lines. But I don't know how do to it. Can anybody give me a hint, please?

Best regards,

Chris


`i'=1

while `i' <= count {

    *variable label in local macro
    local varlab: variable label v1

    *change delimit
    #delimit;
    format date %dD.N.;

    *graph
    graph twoway (scatter v1, title("title") caption("`varlab'"))
    ((line v2 date, sort) xtitle("date"))

    *change delimit ;
    #delimit cr

    local i = `i'+1

}
-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
*
*   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