will_hunting
will_hunting

Reputation: 313

How to set color data (min and max) in colormap manually?

enter image description hereHow to set color data (min and max) in colormap manually? I want to do it without using toolbox(Colormap Editor).

Upvotes: 1

Views: 571

Answers (1)

rayryeng
rayryeng

Reputation: 104555

Do you mean to use the CLim property on the current axis? Try:

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([cmin cmax]);

Upvotes: 1

Related Questions