Move bars so that first is between 0 and 1 (0 and first tick) .
6 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Adam Danz
2021-5-3
编辑:Adam Danz
2021-5-3
That looks like a histogram rather than a bar plot. You can define the histogram edges using (0:25)-.5 to shift the bars leftward by 0.5 units and centered on intergers.
If you are using a bar plot, set the x values to 0:23
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!