How to use bar plot without outlines?

21 ビュー (過去 30 日間)
Mr M.
Mr M. 2015 年 10 月 5 日
回答済み: Mike Garrity 2015 年 10 月 5 日
I don't want to make the outlines invisible, but I want the width to be zero, however the description says that LineWidth has to be positive. So what is the perfect solution? I want filled rectangles/bars touch each other.

採用された回答

Mike Garrity
Mike Garrity 2015 年 10 月 5 日
Either EdgeColor or LineStyle. You might also want to set BarWidth:
bar(rand(1,10),'EdgeColor','none','BarWidth',1)

その他の回答 (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