Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: AW: Graph Title Problem


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von drreg@earthlink.net
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index