colormap in subplot

David Bateman dbateman at dbateman.org
Fri Nov 7 08:30:59 CST 2008


Claudio Belotti wrote:
> hi,
> I'm plotting a subplot 2x2 with four pcolor images.
> I'd like to have 2 of them using the standard jet colormap and the
> other 2 using a differnt one; but whenever I give the colormap()
> command it changes all four, any idea on how to do it?
> 
> thanks
> Claudio


Matlab has the same issue, as the colormap is associated with a figure 
and not an image/patch/surface, etc.. Matlab defined the manner in which 
colormaps work, so blame the issue on them. Luckily, they also supply a 
tech-note with the solution. See

http://www.mathworks.com/support/tech-notes/1200/1215.html

D.


-- 
David Bateman                                dbateman at dbateman.org
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)


More information about the Help-octave mailing list