%% Change Color Map of Binned Scatter Plot
% Create a binned scatter plot of some random data points.

x = randn(1e5,1);
y = randn(1e5,1);
binscatter(x,y)

%
% The default color map ranges from light colors (for small values) to dark colors (for large values). Switching to a color map that uses dark colors for small values can make it easier to spot outliers.
% Use the colormap function to change the colors in the plot. Pass in the current axes handle using gca.

colormap(gca,'parula')

% Copyright 2012 The MathWorks, Inc.