Any idea to make scatter plot more clear to read?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/278758/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/278759/image.jpeg)
there are multiple points that are hidden under the red and orange points. Any idea to make this plot more understandable?
0 Commenti
Risposte (1)
Cris LaPierre
il 23 Mar 2020
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 Commenti
Akira Agata
il 25 Mar 2020
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/279520/image.png)
Vedere anche
Categorie
Scopri di più su Scatter Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!