如何调整 MATLAB 中子图之间的间距?
How to adjust spacing between subplots in MATLAB?
如何在 MATLAB 中reduce/modify子图之间的间距?
您可以使用 Nicolay S. 提供的 subplot_tight()
功能,可在 FileExchange 上获得。您可以使用它来替代 matlabs subplot()
函数(第一个语法示例)或添加边距参数以准确定义子图使用的 space(第二个语法示例)
h=subplot_tight(m, n, p);
h=subplot_tight(m, n, p, margins);
参数 margins
是一个二元向量 [vertical,horizontal],定义相邻轴之间的边距。默认值为 0.04。
如何在 MATLAB 中reduce/modify子图之间的间距?
您可以使用 Nicolay S. 提供的 subplot_tight()
功能,可在 FileExchange 上获得。您可以使用它来替代 matlabs subplot()
函数(第一个语法示例)或添加边距参数以准确定义子图使用的 space(第二个语法示例)
h=subplot_tight(m, n, p);
h=subplot_tight(m, n, p, margins);
参数 margins
是一个二元向量 [vertical,horizontal],定义相邻轴之间的边距。默认值为 0.04。