overlapped bar charts up and down

7 ビュー (過去 30 日間)
MatG
MatG 2017 年 4 月 19 日
回答済み: dpb 2017 年 4 月 19 日
I would like to plot a bar chart for data [2,3,4,5] and [-3,-2,-1,-4] on up and down as attached.

回答 (1 件)

dpb
dpb 2017 年 4 月 19 日
See if one of the following is what you're looking for...
subplot(3,1,1),bar(data)
subplot(3,1,2),bar(data.')
subplot(3,1,3),bar(data(:,1),0.3)
hold on
bar(data(:,2),0.3,'facecolor','y')
results in
Choose your poison...

カテゴリ

Help Center および File ExchangeBar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by