如何控制子图周围的边距大小? [英] How to control the margin size around subplots?

查看:84
本文介绍了如何控制子图周围的边距大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用subplot命令绘制5 x 3个图,但是每个子图周围都有大量边距.

I'm plotting 5 x 3 plots using subplot command, but there are massive margins around each subplot.

如何控制它们周围的边距大小?

How do I control the margin size around them?

figure;
for c=1:15
    subplot(5,3,c); 
    imagesc(reshape(image(:,c), 360,480)); 
    colormap gray; 
    axis image;
end

推荐答案

问题是Matlab分配每个轴的position属性,以便每个图周围都有空间.您可以调整position属性,也可以从文件交换和获取子轴按自己的方式设置子图.

The problem is that Matlab assigns the position property of each axis such that there is space around each plot. You can either adjust the position property, or you can get subaxis from the File Exchange and set up the subplots the way you like.

这篇关于如何控制子图周围的边距大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆