Thread Subject:
discrete colorbar

Subject: discrete colorbar

From: Wendy

Date: 16 Mar, 2011 19:43:05

Message: 1 of 2

Hi all,

I am plotting a 100*100 matrix using imagesc. The values in the matrix are integers between 1 and 10. I am looking for a way to discretise the colorbar from 1 to 10. I searched around, but did have have any luck yet. Does anybody know how to discretize the colorbar?

Thank you in advance,
Wendy

Subject: discrete colorbar

From: Think two, count blue.

Date: 16 Mar, 2011 19:56:57

Message: 2 of 2

On 11-03-16 02:43 PM, Wendy wrote:

> I am plotting a 100*100 matrix using imagesc. The values in the matrix are
> integers between 1 and 10. I am looking for a way to discretise the colorbar
> from 1 to 10. I searched around, but did have have any luck yet. Does anybody
> know how to discretize the colorbar?

Either colormap() something that has only 10 entries, or use clim() to
restrict the portion of the map to be used to 10 entries.

Tags for this Thread

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.

rssFeed for this Thread

Contact us