remove the space between the bars in a bar chart?

164 views (last 30 days)
Hello,
Is it possible to remove the space between the bars in a bar chart? Where is the option?
Thanks

Answers (2)

Image Analyst
Image Analyst on 14 Nov 2012
Try this:
bar(xValues, yValues, 'BarWidth', 1);
You can set the bar width to any fraction between 0 and 1 that you want.
  3 Comments

Sign in to comment.


Honglei Chen
Honglei Chen on 13 Nov 2012
Edited: Honglei Chen on 14 Nov 2012
Are you looking for something like below?
bar(1:10,1:10,1)
The last argument, 1, stands for bar width.

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!