how to change the width of bar chart??
58 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ARYA NAYAK
le 24 Déc 2016
Réponse apportée : Image Analyst
le 24 Déc 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
0 commentaires
Réponse acceptée
Image Analyst
le 24 Déc 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);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Bar Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!