clim in pcolor plot

132 views (last 30 days)
darksideofthemoon101 on 25 May 2011
I have a pcolor plot that I want to set the color limits on. My code is
shading interp
but if i add a third line
then I get an "??? Undefined function or method 'clim' for input arguments of type 'double'." error.
Any suggestions?

Accepted Answer

Patrick Kalita
Patrick Kalita on 25 May 2011
The axes property is called CLim. The convenience function which modifies it is called caxis.

More Answers (1)

Ben Mitch
Ben Mitch on 25 May 2011
are you perhaps looking for...?
set(gca, 'clim', [0 1]);


Community Treasure Hunt

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

Start Hunting!