addsubplot

版本 1.0.0 (2.5 KB) 作者: Bramvg
a convenient wrapper for subplot(m,n,p) that automatically arranges subplots
20.0 次下载
更新 2019/8/23

查看许可证

ADDSUBPLOT moves the existing axes to subplots and adds a new subplot

ADDSUBPLOT
ADDSUBPLOT(where)
ADDSUBPLOT(h,___)
ADDSUBPLOT(___,name,value,...)

ADDSUBPLOTS will check first if there are unused subplot positions in the
figure. If yes, a subplot will be created in that spot. Otherwise the
existing subplots will be rearranged by adding a new row or column and a
new subplot will be created.

parameters:
h = figure handle (default is current figure)
where = use 'right' or 'bottom' to specify where the new subplot should
be added. Use 'square' (default) to keep the subplots in a square
arrangement.
name,value,... = parameters will be passed to the subplot function
ax = axes handle to new subplot

example:
figure
for n = 1:25
addsubplot
plot(rand(5))
end

引用格式

Bramvg (2026). addsubplot (https://ww2.mathworks.cn/matlabcentral/fileexchange/72509-addsubplot), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Subplots 的更多信息
标签 添加标签
版本 已发布 发行说明
1.0.0