How to reduce the data point density on graph?

19 views (last 30 days)
Hydro
Hydro on 27 Apr 2018
Answered: Hydro on 27 Apr 2018

Hello friends,

Below is my plotmatrix coding to compare three models with observed data. I would like to reduce the number of marks on the plot (see attached). Right now each plot has 365 points, i want to go with a step i.e. 1:10:end etc. Any help would be appreciated

[S,AX,BigAx,H,HAx]=plotmatrix(Average_modeling,'*r');
set(S,'MarkerSize',5);
set(H, 'FaceColor','b');
AX(1,1).YLabel.String='Obs';
AX(2,1).YLabel.String='M-1'; 
AX(3,1).YLabel.String='M-2';
AX(4,1).YLabel.String='M-3';
AX(4,1).XLabel.String='Obs';
AX(4,2).XLabel.String='M-1';
AX(4,3).XLabel.String='M-2';
AX(4,4).XLabel.String='M-3';
set(AX,'FontSize',14);

Answers (1)

Hydro
Hydro on 27 Apr 2018
Ok. I solved my problem. here is the solution if someone needs it at any point
set(S,'MarkerSize',5,'MarkerIndices',1:10:365);

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!