-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo2.m
More file actions
19 lines (15 loc) · 698 Bytes
/
Copy pathdemo2.m
File metadata and controls
19 lines (15 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% Demo 2 : Change colors and labels
% Generate three Gaussian-distributed datasets
Data1 = mvnrnd([ 2, 3], [1, 0;0, 2], 300);
Data2 = mvnrnd([ 6, 7], [1, 0;0, 2], 300);
Data3 = mvnrnd([14, 9], [1, 0;0, 1], 300);
DataSet = {Data1, Data2, Data3};
% Create marginal plot object and draw
MP = marginalPlot(DataSet, 'MainType',6, 'UpperType',5, 'RightType',10);
MP.ClassName = {'AAAAA','BBBBB','CCCCC'};
MP.CData = [122,117,119; 255,163, 25; 135,146, 73; 126, 15, 4; 30, 93,134]./255;
MP.draw();
MP.axM.XLabel.String = 'Thank U very much for your five-star review !!!';
MP.axM.YLabel.String = 'Rate me please.';
MP.axU.YLabel.String = 'Marginal plot';
MP.axR.XLabel.String = 'Made by slandarer';