|
"Steven_Lord" <slord@mathworks.com> wrote in message <jbqodg$47p$1@newscl01ah.mathworks.com>...
>
>
> "Stiphu " <schmutz@pyl.unibe.ch> wrote in message
> news:jbqn5o$svk$1@newscl01ah.mathworks.com...
> > I have a GUI where I want to show a picture. In the same figure I want to
> > do a contour plot, using the "jet" colormap. The problem: If I change the
> > colormap, the colormap of the picture is changed as well, the picture is
> > wasted.
> > % Example
> > figure
> > [X,map] = imread('trees.tif');
> > imshow(X,map)
> > colormap(jet)
> >
> > If I change the colormap before I show the image, the colormap is
> > automatically changed to the pictures colormap.
> > Any suggestions?
>
> http://www.mathworks.com/support/tech-notes/1200/1215.html
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com
OK, but now I want to do a contour plot with the colormap jet and display the picture. So far I didn't find a solution to make that, the contour plot now goes over the whole, self modified colormap.
|