For the following matlab code:
figure;imshow( imread('cameraman.tif') ,[])
hold on;scatter(1:200,1:200,[],1:200);colorbar
As we can see, the color of scatter is gray because the colorbar of 'cameraman.tif' is gray. What if I want the colorbar of scatter is jet
or hsv
? I search some information from network, and I find that one axes has just one colorbar.
So, my question is that how to set the colorbar of scatter
to jet
and remain the colorbar of 'cameraman.tif' to be gray?
ZhQ