White space on the right when using bar Matlab

前端 未结 2 455
南方客
南方客 2021-01-21 22:02

I\'m using the below code to save a figure:

fig1=figure(\'visible\',\'off\');
b = bar(bar_res);
x={\'a\' ;\'b\' ;\'c\'; \'d\' ;\'e\'; \'f\' ;\'g\'; \'h\';...
            


        
2条回答
  •  盖世英雄少女心
    2021-01-21 22:10

    A simple solution may be if you call axis tight. However it may not be the result you want because it does remove the small spaces at the borders of the plot.

提交回复
热议问题