clim in pcolor plot

59 vues (au cours des 30 derniers jours)
darksideofthemoon101
darksideofthemoon101 le 25 Mai 2011
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?

Réponse acceptée

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

Plus de réponses (1)

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

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by