how to change the width of bar chart??

61 ビュー (過去 30 日間)
ARYA NAYAK
ARYA NAYAK 2016 年 12 月 24 日
回答済み: Image Analyst 2016 年 12 月 24 日
i placed slider option in gui. i want to change the width of bar chart using moving slider. does anyone know about making bar chart width larger. any method?? please tell me

採用された回答

Image Analyst
Image Analyst 2016 年 12 月 24 日
Use the 'BarWidth' option to give the fraction of width the bars are:
barWidth = handles.slider1.Value; % Get slider value. Must be between 0 and 1
% Now call bar() with the width passed in
bar(x, y, 'BarWidth', barWidth);

その他の回答 (0 件)

カテゴリ

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