Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Color regions of plot background
Date: Fri, 2 May 2008 16:34:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <fvffps$je1$1@fred.mathworks.com>
References: <fvf137$njj$1@fred.mathworks.com> <fvf4df$rqp$1@canopus.cc.umanitoba.ca>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1209746044 19905 172.30.248.35 (2 May 2008 16:34:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 2 May 2008 16:34:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869596
Xref: news.mathworks.com comp.soft-sys.matlab:466314



> snip
> 
> >is this possible?
> 
> No. There is only one plot background color.
> 
> snip

Nonsense...

img = zeros(10,10,3);
img(1:5,:,1) = 0;
img(1:5,:,2) = 1;
img(1:5,:,3) = 0;
img(6:10,:,1) = 0;
img(6:10,:,2) = 0;
img(6:10,:,3) = 1;

imagesc(img)
hold on
axis off
x = 1:10;
y = sin(x)+ x;
plot(x,y,'-k','markersize',14);
hold on

Scott