Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: Re: AW: Remove legends for few line graphs in a figure that has many
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: Re: AW: Remove legends for few line graphs in a figure that has many
Date
Tue, 24 Aug 2010 19:30:43 +0100
The last thing you say about the legend is -legend(off)-. So that is what you should expect from your syntax, no legend, because the last -legend()- option applies to the entire graph, not what is produced by the second -line- command alone.
Martin already indicated what is needed for your problem, the use of -order()-.
I guess at
graph tw (line y1 y0 pce , sort clcolor(black dknavy ) clwidth(thick thick )
xtitle("Per Capita Expenditure ", margin(vsmall)) ytitle("Annual Firewood
Collection in Bharis", margin(vsmall))
xlab(0(10000)55000) ylab(0(20)120, nogrid)
ytic(0(10)120) leg(on order(1 2 3) col(1) ring(5) pos(3) stack label(1 "with FUG")
label(2 "without FUG" ) )) ///
(line z1 z2 z3 z4 pce_c , sort)
Nick
[email protected]
ashokankur
This is the command I write
graph tw (line y1 y0 pce , sort clcolor(black dknavy ) clwidth(thick thick )
xtitle("Per Capita Expenditure ", margin(vsmall)) ytitle("Annual Firewood
Collection in Bharis", margin(vsmall))
xlab(0(10000)55000) ylab(0(20)120, nogrid)
ytic(0(10)120) leg(on col(1) ring(5) pos(3) stack label(1 "with FUG")
label(2 "without FUG" ) )) ///
(line z1 z2 z3 z4 pce_c , sort leg(off))
The problem is when I run this none on the legends remain.
I want the legends (line y1 y0 pce) to remain, while I don't want the
legends for (line z1 z2 z3 z4 pce)
Can that be done?
*
* 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/