Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
"Data Analytics Corp." <walt@dataanalyticscorp.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: question on local macros ina graph title |

Date |
Mon, 11 Apr 2011 10:10:13 -0400 |

Thanks, Walt On 4/11/2011 9:25 AM, Eric Booth wrote:

<> Wrapping in graph titles (or axis labels, notes, captions, etc) occurs when there are embedded quotes in the title, so "Database Analysis" will not wrap, `" " Database" "Analyses" "' will wrap. Modifying Maarten's example, here's the wrapping: *-------------- begin example --------------- sysuse auto, clear local title " Database" "Analysis" forvalues i = 1/5 { scatter price mpg if rep78==`i', /// title("`title'") /// name(gr`i', replace) } *--------------- end example ---------------- - Eric __ Eric A. Booth Public Policy Research Institute Texas A&M University ebooth@ppri.tamu.edu Office: +979.845.6754 On Apr 11, 2011, at 8:15 AM, Maarten buis wrote:--- On Mon, 11/4/11, Data Analytics Corp. wrote:I'm going to produce a series of graphs in which I want the fist line of the title to always be "Database Analysis". I created a local macro as local title "Database Analysis" and then in the graph commands I used title(`title') But the title came out as Database Analysis I want the two words Database and Analysis on one line, the first, of each graph. How do I specify the macro to do this?I cannot reproduce your problem. Can you change the example below such that it produces the behavior you reported? *-------------- begin example --------------- sysuse auto, clear local title "Database Analysis" forvalues i = 1/5 { scatter price mpg if rep78==`i', /// title("`title'") /// name(gr`i', replace) } *--------------- end example ---------------- Hope this helps, Maarten -------------------------- Maarten L. Buis Institut fuer Soziologie Universitaet Tuebingen Wilhelmstrasse 36 72074 Tuebingen Germany http://www.maartenbuis.nl -------------------------- * * 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/

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

**Follow-Ups**:**Re: st: question on local macros ina graph title***From:*Nick Cox <njcoxstata@gmail.com>

**References**:**Re: st: question on local macros ina graph title***From:*Maarten buis <maartenbuis@yahoo.co.uk>

**Re: st: question on local macros ina graph title***From:*Eric Booth <ebooth@ppri.tamu.edu>

- Prev by Date:
**Re: st: Average of previous years** - Next by Date:
**Re: st: RE: Areg, absorb** - Previous by thread:
**Re: st: question on local macros ina graph title** - Next by thread:
**Re: st: question on local macros ina graph title** - Index(es):