decreasing the width of bar graph in matlab -


i wrote code below make bar graph problem width of bar big , need make width thinner, when change fig properties whole graph become smaller .. help?

original photo

after modifying width , whole graph become smaller don't need happen

x = [2,3,4,5,6]; y = [80.32,95.2,92.6,75.6,65.7] figure; bar(x,y,'b'); 

you can use third input argument bar specifies width:

bar(x,y,.4,'b'); %// change ".4" needed 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -