clim in pcolor plot

조회 수: 88 (최근 30일)
darksideofthemoon101
darksideofthemoon101 2011년 5월 25일
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일
The axes property is called CLim. The convenience function which modifies it is called caxis.

추가 답변 (1개)

Ben Mitch
Ben Mitch 2011년 5월 25일
are you perhaps looking for...?
set(gca, 'clim', [0 1]);

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by