Multiple rotated histograms on same plot
조회 수: 8 (최근 30일)
이전 댓글 표시
Hello, I have a vector y for each time step. That is, I have something like this (1,y1), (1,y2), (1,y3), (2,y1), (2,y2), (2,y3), (2,y4) .. . (10,y1),(10,y2)
What I would like to do is plot the time on the x axis (1,2,3....) and on the y axis a histogram for the values in y. The graph would look like many rotated histograms, one for each time. I don't want to do subplot, because it's easier to see the time evolution on one same plot.
If any one has any ideas, tips or hints I would be really really grateful.
Thank you,
Clara
댓글 수: 0
채택된 답변
Walter Roberson
2011년 7월 28일
bar() and barh() support a property named 'base' that might be what you need.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!