Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: legend border


From   "Daniel Stegmueller" <d.stegmueller@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: legend border
Date   Sun, 5 Aug 2007 21:30:23 +0200

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 <Thomas.Gschwend@mzes.uni-mannheim.de>:
> 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 <Thomas.Gschwend@mzes.uni-mannheim.de> 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)
> Thomas.Gschwend@mzes.uni-mannheim.de
> 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/



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