Re: st: Graph: Hiding one key in legend

Steiner asked:
Is there a way of dropping/hiding one of the keys in a graph legend? I'm
creating a graph with a line on a histogram background using -hist,
plot()-, and would like the legend only to show the symbol and label for
the line. The reason for this is that when I later join multiple graphs
into one using -graph combine-, the histogram key is repetitive and does
nothing but take up space and make the labels go outside legend borders.
- and Maarten suggested -grc1leg-
---------------------------------------------------------------
I am not sure that -grc1leg- is the answer to Steinar's problem. But how
about:
sysuse auto.dta , clear
sort price
histogram price, frequency ///
addplot(line mpg price, yaxis(2)) ///
legend(order(2))
Svend
_______________________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone, work: +45 8942 6090
Phone, home: +45 8693 7796
Fax: +45 8613 1580
E-mail: sj@soci.au.dk
_________________________________________________________
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/