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: AW: Graph Title Problem
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: AW: Graph Title Problem
Date
Tue, 4 May 2010 17:05:46 +0200
<>
Your email wraps so it is hard to tell what you really want to happen. You can play around with this example, which works for me:
*************
capt prog drop myprog
prog def myprog
vers 11
sysuse auto
hist mpg, tit(My Graph) subtitle("`1', PM2.5 Data from AQS")
end
myprog Raleigh
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von [email protected]
Gesendet: Dienstag, 4. Mai 2010 16:54
An: Statalist
Betreff: st: Graph Title Problem
I'm trying to write my first program (version 11), and I've run into a problem I can't seem to sort out and would appreciate help with:
I'm constructing a graph. I've assigned a macro `1' to "Raleigh" and everything works EXCEPT for this: subtitle("`1'"" PM2.5 Data from AQS") outputs centered under the title as
Raleigh
PM2.5 Data from AQS
subtitle(""`1'", PM2.5 Data from AQS") doesn't output at all.
What I want to output is Raleigh, PM2.5 Data from AQS
*
* 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/
*
* 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/