scaling the colorbar of the plot

I want to scale the color bar to maximum and minimum values? which function should I use caxis or clim? and what is the difference between them

 Accepted Answer

set(gca,'ylim',[min_yval max_yval]), %for y axis

1 Comment

I do meshing of the figure mesh(x,y,z) and then color bar but I want to scale this colorbar

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!