set colorbar range

  • Follow


I have generated a checker plot using imagesc to graphically display cross-correlation values. I also manually set the lowest color to white by applying a custom colormap:

colormap(jet)
currentMap = colormap;
newMap = [1 1 1; currentMap];
colormap(newMap)

So now it shades only those cells with values > 0.85; everything else is white (i.e., made to look empty). 

My question is, how can I make the colorbar show only my data range of interest? Presently it includes a small block at the bottom colored white, which is both unnecessary and unsightly. I just cannot find a way to do this anywhere (apart from GIMP photo editing)....
0
Reply Matthias 9/2/2010 9:21:06 AM

Instead of displaying the colorbar using the colorbar function, you
could always display it using image(currentMap).

Patrick

On Sep 2, 5:21=A0am, "Matthias " <matthew.godd...@bcf.uni-freiburg.de>
wrote:
> I have generated a checker plot using imagesc to graphically display cros=
s-correlation values. I also manually set the lowest color to white by appl=
ying a custom colormap:
>
> colormap(jet)
> currentMap =3D colormap;
> newMap =3D [1 1 1; currentMap];
> colormap(newMap)
>
> So now it shades only those cells with values > 0.85; everything else is =
white (i.e., made to look empty).
>
> My question is, how can I make the colorbar show only my data range of in=
terest? Presently it includes a small block at the bottom colored white, wh=
ich is both unnecessary and unsightly. I just cannot find a way to do this =
anywhere (apart from GIMP photo editing)....

0
Reply Patrick 9/2/2010 7:17:11 PM


1 Replies
671 Views

(page loaded in 0.095 seconds)

Similiar Articles:













7/22/2012 6:32:19 AM


Reply: