mysubplot: subplots with major title
Similar to `subplot`, but can add a major title on top. Can change the size of padding between subplots
Syntax: mysubplot( L, W, ID, bigtitle, tightL, tightW)
L, W: the dimension of subplots as in subplot(L,W,ID);
to make larger subplot, make [ID] a vector with IDs of multiple cells.
ID: The location of subplot as in subplot(L,W,ID)
to make mojor title, set ID = 0
bigtitle: string of the major title; be ignored when ID ~= 0. (can put [] as place holder)
tightL, tightW: How tight the subplots packed, on the first and second dimension.
Or the ratio of space between subplots to the size of subplot.
Default : 0.3, 0.3
To make subplot: mysubplot(L, W, ID, [], tightL, tightW)
(use the first 3 arguments like in matlab function subplot.)
To make major title: mysubplot(L, W, 0, bigtitle)
(use the first 2 arguments like in subplot, but set ID = 0.)
To print subplot cell layout: mysubplot(L, W)
See PDF for full documentation.
Citar como
Wei-Ting Lin (2024). mysubplot: subplots with major title (https://www.mathworks.com/matlabcentral/fileexchange/53123-mysubplot-subplots-with-major-title), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Title >
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
Etiquetas
Agradecimientos
Inspirado por: mtit: a pedestrian major title creator, mycolor(colorcode, selectplate)
Inspiración para: myplot_RAC: Rank-Abundance Curve
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.