Any idea to make scatter plot more clear to read?

조회 수: 13 (최근 30일)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020년 3월 22일
댓글: Akira Agata 2020년 3월 25일
there are multiple points that are hidden under the red and orange points. Any idea to make this plot more understandable?

답변 (1개)

Cris LaPierre
Cris LaPierre 2020년 3월 23일
Have you checked out the properties for scatter plots?
Consider changing your marker style or marker size. You can also adjust you axis limits to effectively zoom in on the data, potentially helping spread the data out.
  댓글 수: 4
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020년 3월 24일
@cris:
I dont think changing the marker style will solve the issue because they will again hide behind the red/orange points.
Akira Agata
Akira Agata 2020년 3월 25일
Hi Zeynab-san,
>My data is 2D why scatter3?
OK. The following is what I thought:
% Sample data
rng('default');
D1 = [abs(randn(20,1)),rand(20,1)];
D2 = [abs(randn(20,1)),rand(20,1)];
D3 = [abs(randn(20,1)),rand(20,1)];
% Visualize using 2D scatter
figure
hold on
scatter(D1(:,1),D1(:,2),'filled')
scatter(D2(:,1),D2(:,2),'filled')
scatter(D3(:,1),D3(:,2),'filled')
legend({'Data1','Data2','Data3'},'FontSize',12)
grid on
box on
% Visualize using 3D scatter
figure
hold on
scatter3(ones(20,1),D1(:,1),D1(:,2),'filled')
scatter3(ones(20,1)*2,D2(:,1),D2(:,2),'filled')
scatter3(ones(20,1)*3,D3(:,1),D3(:,2),'filled')
ax = gca;
ax.XTick = 1:3;
ax.XTickLabel = {'Data1','Data2','Data3'};
view([60 45])
grid on
box on

댓글을 달려면 로그인하십시오.

카테고리

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