How to reduce the data point density on graph?

조회 수: 19 (최근 30일)
Hydro
Hydro 2018년 4월 27일
답변: Hydro 2018년 4월 27일

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에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by