clim in pcolor plot

Hi,
I have a pcolor plot that I want to set the color limits on. My code is
pcolor(X,Y,f(data))
shading interp
but if i add a third line
clim([0,1])
then I get an "??? Undefined function or method 'clim' for input arguments of type 'double'." error.
Any suggestions?

 采纳的回答

Patrick Kalita
Patrick Kalita 2011-5-25

1 个投票

The axes property is called CLim. The convenience function which modifies it is called caxis.

更多回答(1 个)

are you perhaps looking for...?
set(gca, 'clim', [0 1]);

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by