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]

RE: st: Removing legend from combined graph


From   "Md. Alauddin Majumder" <mm4v@mtmail.mtsu.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Removing legend from combined graph
Date   Fri, 17 May 2013 11:09:44 +0000

Thank you so much Maarten. I did a mistake and apologized for that in my last email.

Majumder

________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] on behalf of Maarten Buis [maartenlbuis@gmail.com]
Sent: Friday, May 17, 2013 6:04 AM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Removing legend from combined graph

On Fri, May 17, 2013 , Md. Alauddin Majumder wrote:
>>> I want to keep legend off in my combine graph. I use the
>>> following command:
>>>
>>> grc1leg graph1 graph2 graph3, title("Combine graph") leg(off)

On Fri, May 17, 2013 Maarten Buis wrote:
>> If you want no legend at all, you just create your
>> subgraphs with -legend(off)-, and than use -graph combine-.

On Fri, May 17, 2013 , Md. Alauddin Majumder wrote:
> I did exactly what you mentioned but still a default legend
> related to the first graph showed up.

Than you did not do exactly what I told you to do, because then there
would be no default legend to show up. Please give us the exact
commands you typed, otherwise we cannot answer your question. Here is
an example of how to do that:

*------------------ begin example ------------------
sysuse auto, clear
scatter price mpg foreign, legend(off) name(a)
scatter turn mpg foreign, legend(off) name(b)
graph combine a b
*------------------- end example -------------------
(For more on examples I sent to the Statalist see:
http://www.maartenbuis.nl/example_faq )

-- Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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