Two Bar Plots on one graph, with the bars next to each other, with horizontal axis showing text

3 次查看(过去 30 天)
I would like to display bar chart, with bars next to each other ... and I want to display units for x-axis as subjects instead of numbers ...
  2 个评论
Jan
Jan 2018-6-28
What does "next to each other" exactly mean? What are the "units for x-axis"? Do you mean the tick-labels? What are "subjects"? Do you mean strings or char vectors?

请先登录,再进行评论。

采纳的回答

Jan
Jan 2018-6-28
编辑:Jan 2018-6-28
Maybe:
ax = axes;
y = [75 91 105];
bar(y, 1)
ax.XTick = 1:3;
ax.XTickLabels = {'1st', '2nd', '3rd'};

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Bar Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by