Rank: 367174 based on 0 downloads (last 30 days) and 0 file submitted
photo

Alessio Rucci

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Alessio Rucci
Updated File Comments Rating
21 Apr 2009 freezeColors / unfreezeColors Use multiple colormaps per figure! Version 2, now works for many types of objects, not only images. Author: John Iversen

Hi, I'm trying to plot in the same figure (not in different subplot of thesame image) two different data with different colorbar, but if I use freezeColor it doesen't work....

[X,Y]=meshgrid(-10:10,-20:20);
Z1=sqrt((X/10).^2+(Y/10).^2)+2;
Z2=sqrt((X/10).^2+(Y/10).^2)-2;

figure,contour3(X,Y,Z1); axis xy; colormap hsv;
freezeColors; freezeColors(colorbar);
hold on;contour3(X,Y,Z2); axis xy; colormap jet;
freezeColors; freezeColors(colorbar);

is it possible to have both the colorbars, one for each data?

Thaks

Contact us