Thread Subject: Colormap with plot3?

Subject: Colormap with plot3?

From: Erik

Date: 19 Mar, 2010 08:31:26

Message: 1 of 3

Hello!
I need some help to understand colormap. I currently have a pointcloud in a N*3 matrix with each row beeing a coordinate [X Y Z]. I can plot the raw pointcloud using plot3 (or surf) by a simple "plot3(rMap(:,1),rMap(:,2),rMap(:,3),'.')"

Now, I want to add a jet colormap to the pointcloud in order to see height differances better. I've tried running colormap(jet) etc but it doesn't work. How can I add a jet colormap to my figure? Do I need to use something else besides plot3?

I want the image to look something like the link below when done
http://img535.imageshack.us/img535/576/snapshot1n.png

Very grateful for help on my annoying problem. Sorry if I'm posting on the wrong place aswell. I'm new here.

Sincerely
/E

Subject: Colormap with plot3?

From: us

Date: 19 Mar, 2010 08:41:04

Message: 2 of 3

"Erik " <erija952@student.liu.se.remove.this> wrote in message <hnvcou$5gm$1@fred.mathworks.com>...
> Hello!
> I need some help to understand colormap. I currently have a pointcloud in a N*3 matrix with each row beeing a coordinate [X Y Z]. I can plot the raw pointcloud using plot3 (or surf) by a simple "plot3(rMap(:,1),rMap(:,2),rMap(:,3),'.')"
>
> Now, I want to add a jet colormap to the pointcloud in order to see height differances better. I've tried running colormap(jet) etc but it doesn't work. How can I add a jet colormap to my figure? Do I need to use something else besides plot3?
>
> I want the image to look something like the link below when done
> http://img535.imageshack.us/img535/576/snapshot1n.png
>
> Very grateful for help on my annoying problem. Sorry if I'm posting on the wrong place aswell. I'm new here.
>
> Sincerely
> /E

a hint:

     help scatter3;

us

Subject: Colormap with plot3?

From: Erik

Date: 19 Mar, 2010 10:01:07

Message: 3 of 3

"us " <us@neurol.unizh.ch> wrote in message <hnvdb0$f4v$1@fred.mathworks.com>...
> "Erik " <erija952@student.liu.se.remove.this> wrote in message <hnvcou$5gm$1@fred.mathworks.com>...
> > Hello!
> > I need some help to understand colormap. I currently have a pointcloud in a N*3 matrix with each row beeing a coordinate [X Y Z]. I can plot the raw pointcloud using plot3 (or surf) by a simple "plot3(rMap(:,1),rMap(:,2),rMap(:,3),'.')"
> >
> > Now, I want to add a jet colormap to the pointcloud in order to see height differances better. I've tried running colormap(jet) etc but it doesn't work. How can I add a jet colormap to my figure? Do I need to use something else besides plot3?
> >
> > I want the image to look something like the link below when done
> > http://img535.imageshack.us/img535/576/snapshot1n.png
> >
> > Very grateful for help on my annoying problem. Sorry if I'm posting on the wrong place aswell. I'm new here.
> >
> > Sincerely
> > /E
>
> a hint:
>
> help scatter3;
>
> us

I believe this will solve my problem!
Thanks alot!
/E

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
reference us 19 Mar, 2010 04:44:26
colormap jet po... Erik 19 Mar, 2010 04:34:08
rssFeed for this Thread

Contact us at files@mathworks.com