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

Re: st: question on local macros ina graph title


From   Nick Cox <njcoxstata@gmail.com>
To   walt@dataanalyticscorp.com
Subject   Re: st: question on local macros ina graph title
Date   Mon, 11 Apr 2011 14:31:02 +0100

I am glad that you got it to work, but it's not clear why that makes a
difference!

For "Maartin" read "Maarten".

Nick

On Mon, Apr 11, 2011 at 2:22 PM, Data Analytics Corp.
<walt@dataanalyticscorp.com> wrote:
>
> Maartin's example worked.  I needed to use
>
> title("`title'")
>
>
>
> Thanks,
>
> Walt
>
> ________________________
>
> Walter R. Paczkowski, Ph.D.
> Data Analytics Corp.
> 44 Hamilton Lane
> Plainsboro, NJ 08536
> ________________________
> (V) 609-936-8999
> (F) 609-936-3733
> walt@dataanalyticscorp.com
> www.dataanalyticscorp.com
> _____________________________________________________
>
> On 4/11/2011 9:03 AM, Nick Cox wrote:
>>
>> That should work. Something else is interfering. Look for some exotic
>> characters where the space should be.
>>
>> Nick
>>
>> On Mon, Apr 11, 2011 at 1:59 PM, Data Analytics Corp.
>> <walt@dataanalyticscorp.com>  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?

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