www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SetFigurePropertiesUsingHandlesExample.m

    %% Modify Scatter Plot Matrix After Creation

% Copyright 2015 The MathWorks, Inc.


%% 
% Create a scatter plot matrix of random data. 
rng default
X = randn(50,3);
[S,AX,BigAx,H,HAx] = plotmatrix(X); 

%%
% To set properties for the scatter plots, use |S|. To set
% properties for the histograms, use |H|. To set axes
% properties, use |AX|, |BigAx|, and |HAx|.  Starting in
% R2014b, you can use dot notation to set properties. If you are using an
% earlier release, use the <docid:matlab_ref.f67-432995> function instead.

%% 
% Set the color and marker type for the scatter plot in the lower left
% corner of the figure. Set the color for the histogram plot in the lower
% right corner. Use the |title| command to title the figure.
S(3).Color = 'g';
S(3).Marker = '*';  

H(3).EdgeColor = 'k';
H(3).FaceColor = 'g';  

title(BigAx,'A Comparison of Data Sets')