how to change the width of bar chart??
조회 수: 53 (최근 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!