Displaying bar plots side by side

Hi,
I want to use barh to display horizontal bar plot for 2 things. Hold on doesn't seem to work. How to do this? barh([1,2,3]) and barh([..]) I want the 2 things to be not overlayed but on top of one another in horizontal bar plot.
thanks, henry

2 个评论

Sorry I meant each value on top of one another. So at vertical scale 100, I first want to see 34, then another bar 48 underneathe it, if I issue the following command:
barh([10:10:100],[0.34.*([10:10:100])]) hold on barh([10:10:100],[0.48.*([10:10:100])])
it doesn't work.
You want "stacked" bars?

请先登录,再进行评论。

回答(2 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by