bar chart with hold on
이전 댓글 표시
I am trying to plot a bar chart like this: x = [9,10,11,12,13,14] x1 = [1,2,3,4,5,6] y = [2,4,5,6,7,8] y1 = [3,2,4,5,6,9] h = bar(x,y,'red') hold on h = bar(x1,y1,'blue')
What I get as a result is the picture I show. Why are there labels missing in x? The labels that are missing are always the ones after the hold on. Any ideas?

채택된 답변
추가 답변 (1개)
Alex Apostolou
2018년 7월 20일
0 개 추천
댓글 수: 1
Stephan
2018년 7월 20일
Please accept helpful answers in order to help people with similar problems finding helpful answers.
Best regards
Stephan
카테고리
도움말 센터 및 File Exchange에서 Bar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
