Statalist


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

st: RE: legend border


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: legend border
Date   Fri, 3 Aug 2007 11:03:30 +0200

--- Thomas Gschwend 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.

It appears that -lcolor(none)- gives the line the same color as the 
background. Moreover, it appears uses the default background color 
in your scheme and ignores the changes you have made to the 
background color. This is easily fixed by choosing the same line 
color as the background color, as shown below:

*-------- begin example ----------
sysuse uslifeexp, clear
set scheme s2color
#delimit ;
line le_male  le_female year, 
legend(region(lcolor(white)))
graphregion(color(white));
#delimit cr
*---------- end example -----------

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------




*
*   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