plotting horizontal scatter plots
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Catarina
am 3 Jul. 2023
Kommentiert: Star Strider
am 4 Jul. 2023
Hello,
How can i display scatter points horizontally in a horizontal bar plot? Like, instead of having the scatter plot plotting from the x axis, making it plot from the y axis.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 3 Jul. 2023
Reverse the ‘x’ and ‘y’ coordinates in the scatter plot —
x = 1:5;
y = rand(size(x));
figure
barh(rand(size(x)))
hold on
scatter(y, x, 100, y, 'filled', 'p')
hold off
.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!