The next code plots a colorbar with the colors I desire
RGB=[0.384 0 00.525 0 00.717 0 00.741 0.168 00.765 0.333 00.765 0.525 00.765 0.717 00.585 0.729 0.180.405 0.738 0.360.045 0.762 0.720.033 0.582 0.7320.024 0.402 0.7410.012 0.225 0.750.003 0.045 0.7620 0 0.6210 0 0.429]; colormap(RGB) colorbar caxis([0,max(2107)])
I would like to set the labels following the vecor label,
label = [ 2.7290e+000 4.2512e+000 6.6224e+000 1.0316e+001 1.6070e+001 2.5034e+001 3.8998e+001 6.0750e+001 9.4634e+001 1.4742e+002 2.2965e+002 3.5774e+002 5.5728e+002 8.6812e+002 1.3523e+003 2.1066e+003];
And put the tick and labels exactly on the color divisions.
Any idea about how to do it?
Best Answer