Thomas,
You could also get rid of the border altogether:
- legend(region(lwidth(none))) -
sysuse uslifeexp, clear
#delimit ;
line le_male le_female year,
legend(region(lwidth(none)))
graphregion(color(white));
#delimit cr
Best,
Daniel
2007/8/3, Thomas Gschwend <[email protected]>:
> Very nice - and so easy (others would probably say "obvious").
> Thanks a bunch, Sebastian
>
> Sebastian F. B�chte schrieb:
> > Thomas
> >
> > how about setting the legend's line color to white? Like this:
> >
> > sysuse uslifeexp, clear
> > #delimit ;
> > line le_male le_female year,
> > legend(region(lcolor(white)))
> > graphregion(color(white));
> > #delimit cr
> >
> >
> > On 8/3/07, Thomas Gschwend <[email protected]> wrote:
> >
> >> I am working with Stata/SE 9.2 and try to produce graphs with a legend.
> >> But I need to remove the borders. I tried -region(lcolor(none))- and
> >> -region(lstyle(none))- without success. However, a tiny greyish border
> >> still remains.
> >>
> >> Here is an example:
> >>
> >> sysuse uslifeexp, clear
> >> #delimit ;
> >> line le_male le_female year,
> >> legend(region(lcolor(none)))
> >> graphregion(color(white));
> >> #delimit cr
> >>
> >> #delimit ;
> >> line le_male le_female year,
> >> legend(region(lstyle(none)))
> >> graphregion(color(white));
> >> #delimit cr
> >>
> >> Does anybody have an idea of how to completely remove the borders of
> >> such a legend?
> >> Any help is greatly appreciated,
> >> Thomas
> >>
> >> *
> >> * 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/
> >>
> >>
> > *
> > * 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/
> >
>
> --
>
> Thomas Gschwend, PhD
> Mannheimer Zentrum fuer Europaeische Sozialforschung (MZES)
> University of Mannheim
> 68131 Mannheim
> Germany
> 0621.181.2809 (voice)
> 0621.181.2845 (fax)
> [email protected]
> http://www.sowi.uni-mannheim.de/lehrstuehle/lspol1/gschwend.htm
>
>
>
> *
> * 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/
>
--
Friend to Groucho Marx: "Life is difficult!"
Marx to Friend: "Compared to what?"
Daniel Stegm�ller
B�ckstr. 11
68159 Mannheim
0621/9783639
*
* 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/