how to change the width of bar chart??

55 Ansichten (letzte 30 Tage)
ARYA NAYAK
ARYA NAYAK am 24 Dez. 2016
Beantwortet: Image Analyst am 24 Dez. 2016
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

Akzeptierte Antwort

Image Analyst
Image Analyst am 24 Dez. 2016
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);

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by