multiple barh plot with different base value settings in the same graph

1 view (last 30 days)
Is there any way to have multiple horizontal bar plots in the same figure with different base value settings?
simply typing the following does not work properly. what I want is multiple separate horizontal bar charts starting at different positions in the same plot.
barh([5,10,15,20],[550,150,220,120],'BaseValue',260);
hold on
barh([5,10,15,20],[55,150,22,12],'BaseValue',26);
I figure I am missing something obvious, I hope
thanks Greg

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!