Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon06.news.prodigy.net!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread4.news.pas.earthlink.net.POSTED!dc6c4d1a!not-for-mail
Newsgroups: comp.soft-sys.matlab
Subject: Re: Changing Legend transparency
References: <m3odqy20y9.fsf@ieee.org> <45658ece$1_1@glkas0286.greenlnk.net> <m3slgaz1ct.fsf@ieee.org> <4565b135$1_1@glkas0286.greenlnk.net> <ef46a6c.6@webcrossing.raydaftYaTP>
From: Randy Yates <yates@ieee.org>
Organization: The Universal Church of Christ
Message-ID: <m38xhxlv0k.fsf@ieee.org>
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux)
Cancel-Lock: sha1:gqzlFcyhzVrkBdvJqyU1YoZYz/Y=
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Lines: 33
Date: Sun, 26 Nov 2006 22:10:04 GMT
NNTP-Posting-Host: 24.225.90.141
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread4.news.pas.earthlink.net 1164579004 24.225.90.141 (Sun, 26 Nov 2006 14:10:04 PST)
NNTP-Posting-Date: Sun, 26 Nov 2006 14:10:04 PST
Xref: news.mathworks.com comp.soft-sys.matlab:380521



Jérôme <dutmatlab@yahoo.fr> writes:

> Hi,
>
> here are all the properties you need :
>
> x = -pi:pi/20:pi;
> plot(x,cos(x),'-ro',x,sin(x),'-.b')
> h = legend('cos','sin',2);
>
> set(h,'box','on', ...
> 'color','y', ...
> 'ycolor','m', ...
> 'xcolor','b', ...
> 'visible','on')
>

Hi Jerome,

Thanks for that! A variation on your idea works for
the screen:

set((hl,'color','w','xcolor','w','ycolor','w');

However, when I print (print('file.eps','-depsc2'))
it's back to black borders. Arghh! How to get
no borders when PRINTING?!???
-- 
%  Randy Yates                  % "With time with what you've learned, 
%% Fuquay-Varina, NC            %  they'll kiss the ground you walk 
%%% 919-577-9882                %  upon."
%%%% <yates@ieee.org>           % '21st Century Man', *Time*, ELO
http://home.earthlink.net/~yatescr