how to change the width of bar chart??
61 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Bar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!