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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193945/image.jpeg)
0 个评论
采纳的回答
madhan ravi
2018-11-6
编辑:madhan ravi
2018-11-6
ylim([0 2])
yticks([0 2])
or
set(gca,'YTick',0:0.5:2)
1 个评论
madhan ravi
2018-11-6
编辑:madhan ravi
2018-11-6
not sure what you want from the above? or try plotyy()
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!