How to change the order on vertical axis on a figure ?
8 次查看(过去 30 天)
显示 更早的评论
From the below code, in the figure, vertical axis is from -1 to 2. i want to change the order i.e 2 to -1. Thanks for all cooperation.
x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
scatter(x,y)
0 个评论
采纳的回答
Ankit
2019-9-27
hi,
you could try this
x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
scatter(x,y)
set(gca,'YDir','reverse')
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!