%% Set Color Limits on a Specific Axes
%
% Plot a paraboloid in two subplots.

[X,Y] = meshgrid(-5:1:5);
Z = X.^2 + Y.^2;
ax1 = subplot(1,2,1);
surf(ax1,Z);
ax2 = subplot(1,2,2);
surf(ax2,Z);

%
% Raise the lower color limit of the right axes to 20.

caxis(ax2,[20 50])

% Copyright 2012 The MathWorks, Inc.