Adjusting size of plot in Matlab so that graph does not get cut off by edge of plot window

前端 未结 3 2093
北海茫月
北海茫月 2021-01-07 03:26

I\'ve created a plot in Matlab, but unfortunately the side of the plot is cut off by the plotting window. Here is the code that I\'ve used to create the plot:



        
3条回答
  •  孤城傲影
    2021-01-07 04:25

    Andrey has the simplest answer, but alternatively (and for the long term) you can go to the file exchange and download subaxis.m, which replaces subplot, and is superb for even single axes plots (you can define properties like LeftMargin and RightMargin and PaddingTop and PaddingBottom)

    http://www.mathworks.com/matlabcentral/fileexchange/3696-subaxis-subplot

提交回复
热议问题