%% Darken Colormap for Specific Axes
% Display two surface plots that use the summer colormap in a tiled chart layout.

t = tiledlayout(1,2);
ax1 = nexttile;
surf(ax1,peaks);
ax2 = nexttile;
surf(ax2,peaks);
colormap(summer)

%
% Darken the summer colormap and apply it to the second surface.

newmap = brighten(summer,-.7);
colormap(ax2,newmap)

% Copyright 2019 The MathWorks, Inc.