How to reduce the space between Yticks?

5 次查看(过去 30 天)
Hi, I am plotting a scatter plot with two groups on the Y axis. I want to reduce the distance between these groups in the plot as i only have two groups. Any help to solve this will be appreciated.

采纳的回答

madhan ravi
madhan ravi 2018-11-6
编辑:madhan ravi 2018-11-6
ylim([0 2])
yticks([0 2])
or
set(gca,'YTick',0:0.5:2)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by