Reputation: 313
How to set color data (min and max) in colormap manually? I want to do it without using toolbox(Colormap Editor).
Upvotes: 1
Views: 571
Reputation: 104555
Do you mean to use the CLim property on the current axis? Try:
CLim
set(gca, 'CLim', [cmin cmax]);
Alternatively, you can do what zeeMonkeez suggests and use caxis, which does set in this fashion under the hood:
caxis
set
caxis([cmin cmax]);