Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!193.111.200.220.MISMATCH!news-peer.gradwell.net!news-peer-lilac.gradwell.net!not-for-mail
From: "Geordie" <steve.corsbie@baesystems.com>
Newsgroups: comp.soft-sys.matlab
References: <m3odqy20y9.fsf@ieee.org>
Subject: Re: Changing Legend transparency
Date: Thu, 23 Nov 2006 12:19:27 -0000
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
Message-ID: <45658ece$1_1@glkas0286.greenlnk.net>
X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net
Lines: 34
NNTP-Posting-Host: 20.133.0.1
X-Trace: 1164284388 news.gradwell.net 628 dnews/20.133.0.1:58545
X-Complaints-To: news-abuse@gradwell.net
Xref: news.mathworks.com comp.soft-sys.matlab:380103



Randy,

I take it that you just want to hide the box around the legend and keep the 
background colour:

to do this I would set the edge colour of the legend to match the background 
color. See below

Plot(x,y); % plot data
h=legend('test'); %create lengend
set(h,'EdgeColor',[1 1 1]); %set the edge colour of the legend to white 
which should be the default of the background

SC





"Randy Yates" <yates@ieee.org> wrote in message 
news:m3odqy20y9.fsf@ieee.org...
> When I first add a legend, it has a black border and
> it is non-transparent. If I execute "legend boxoff",
> the black border goes away AND the legend becomes
> transparent. How do I turn off the border and keep
> the legend non-transparent?
> -- 
> %  Randy Yates                  % "Midnight, on the water...
> %% Fuquay-Varina, NC            %  I saw...  the ocean's daughter."
> %%% 919-577-9882                % 'Can't Get It Out Of My Head'
> %%%% <yates@ieee.org>           % *El Dorado*, Electric Light Orchestra
> http://home.earthlink.net/~yatescr