writing the bar chart value
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
the following chart describes the problem in displaying the bar value why does it not appear as a single value for each one?
thank you for help
2 个评论
采纳的回答
Image Analyst
2016-2-13
You need to do each label one at a time. Use this:
bar(y,0.4)
ylim([0 1.2])
Labels = {'P', 'T', 'Tx', 'Ty','Txy', 'P and T'};
set(gca, 'XTick', x, 'XTickLabel', Labels);
for k = 1 : length(x)
text(x(k)',y(k)',num2str(y(k)),...
'HorizontalAlignment','center','VerticalAlignment','bottom')
end
grid on;
更多回答(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!