labelling x axis vertically

2 次查看(过去 30 天)
FIR
FIR 2011-11-10
I have a graph ,and i want to label the axis vertically ,can u help please..
I gave bar graphs ,there are 7 bars in that graph
bar(y)
plots the graph for the values of y
x axis is labelled as 1 2 3 4 5....
i want to label the x axis vertically
i know to label for horizontal ,please tell for vertical

回答(1 个)

Wayne King
Wayne King 2011-11-10
You mean you want the bar graphs extending from the vertical axis?
x = 1:4;
y = randperm(4);
barh(x,y);
  1 个评论
FIR
FIR 2011-11-10
no wayne for example if the x axis is
jan feb mar
i need as vertical
n b r
a e a
j f m

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by