Path: news.mathworks.com!not-for-mail
From: "Paul " <palex71@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Color / 3D plots
Date: Wed, 22 Jun 2011 18:42:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 57
Message-ID: <ittd1q$ee9$1@newscl01ah.mathworks.com>
References: <itr1d6$k7h$1@newscl01ah.mathworks.com> <itr2qo$o1r$1@newscl01ah.mathworks.com> <itr4sc$i$1@newscl01ah.mathworks.com> <itro83$h0v$1@newscl01ah.mathworks.com>
Reply-To: "Paul " <palex71@hotmail.com>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1308768122 14793 172.30.248.45 (22 Jun 2011 18:42:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Jun 2011 18:42:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2380237
Xref: news.mathworks.com comp.soft-sys.matlab:733273

"Steven_Lord" <slord@mathworks.com> wrote in message <itro83$h0v$1@newscl01ah.mathworks.com>...
> 
> 
> "Paul " <palex71@hotmail.com> wrote in message 
> news:itr4sc$i$1@newscl01ah.mathworks.com...
> > "Jeff " <jea@gene.dot.com> wrote in message 
> > <itr2qo$o1r$1@newscl01ah.mathworks.com>...
> >> "Paul " <palex71@hotmail.com> wrote in message 
> >> <itr1d6$k7h$1@newscl01ah.mathworks.com>...
> >> > Hello,
> >> > This should be farily easy...
> >> > I have a 1000x3 matrix.  I am looking to do a color plot, where column 
> >> > #1 defines the x axis, column #2 defines the y axis, and column #3 is 
> >> > the color.
> >> >
> >> > I would also be interested in knowing how to do a 3D plot with the same 
> >> > matrix.
> >> >
> >> > I haven't quite been able to figure out the proper command/syntax.
> >> >
> >> > Thanks!
> >>
> >> Can you give an example of your data, and a bit more description on what 
> >> you want your plot to look like?  Specifically, how are you representing 
> >> color in a single column.
> >
> > For the color plot, I was looking for:
> > Column 1 - x axis
> > Column 2 - y axis
> > Column 3 - color point (higher value = darker color)
> >
> > Good point... How would I do a plot3 with an increasing color variation 
> > with depth?
> 
> HELP SCATTER3
> 
> -- 
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on 
> http://www.mathworks.com 

Thanks for the replies.
Here is a better indication on what I am trying to do with a 2d plot:

Matrix:
1 2 6
3 5 4
8 9 5

I need the x axis (column #1) scaled from 1 to 8
I need the y axis (column #2) scaled from 2 to 9
At (x,y) = (1,2), I need a point plotted of color value = 6 (darkest)
At (x,y) = (3,5), I need a point plotted of color value = 4 (lightest)
At (x,y) = (8,9), I need a point plotted of color value = 5 (middle)

Thanks again!