How to reduce the data point density on graph?

11 次查看(过去 30 天)

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);

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by