Plot the values between the range

1 回表示 (過去 30 日間)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2015 年 11 月 25 日
コメント済み: Mike Garrity 2015 年 11 月 30 日
I need to plot the values between the range using the bar plot ?
for example
Bar A 10-15
Bar B 25-30
Bar C 45-50
How can i do this ?
Thanks a lot

採用された回答

Thorsten
Thorsten 2015 年 11 月 25 日
h = bar([10 25 45; 5 5 5]', 'stacked');
set(h(1), 'FaceColor', 'w', 'EdgeColor', 'w')
  2 件のコメント
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2015 年 11 月 30 日
Problem i face here is when i am using the above command I cannot able to complete the grid lines. How to overcome this??
Thanks a lot
Mike Garrity
Mike Garrity 2015 年 11 月 30 日
Instead of setting FaceColor and EdgeColor to white, try setting Visible to off.
set(h(1), 'Visible','off')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by