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, 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   Maarten Buis <>
Subject   Re: st: Removing legend from combined graph
Date   Fri, 17 May 2013 13:04:59 +0200

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: )

-- Maarten

Maarten L. Buis
Reichpietschufer 50
10785 Berlin
*   For searches and help try:

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