labelling x axis vertically
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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);
참고 항목
카테고리
Help Center 및 File Exchange에서 Bar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!