how to change the width of bar chart??

조회 수: 53 (최근 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 CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by