Align figures without overlap
function align_figure(hfig, target_mon, width, height, margin_top, margin_left, margin_btw_width, margin_btw_height)
% align_figure: align figures without overlap
%
% Yonggyu Han / Yonsei university / 2016.02.18
%
% This function set figures' position to avoid overlap of figures.
%
% Example:
%
% hfig1 = figure();
% hfig2 = figure();
% hfig3 = figure();
% hfig = [hfig1 hfig2 hfig3];
% align_figure(hfig);
%
% target_mon (for multiple monitor users)
% ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
% s
% s margin_top
% s
% s wwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwwwwwwwwwwwwwwww
% s w width w w w
% s w w w w
% s w h w w w
% s w e w w w
% s margin_left w i fig1 w margin_btw_width w fig2 w
% s w g w w w
% s w h w w w
% s w t w w w
% s w w w w
% s w w w w
% s wwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwwwwwwwwwwwwwwww
% s
% s margin_btw_height
% s
% s wwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwwwwwwwwwwwwwwww
% s w w w w
% s w w w w
% s w w w w
% s w w w w
% s w fig3 w w fig4 w
% s w w w w
% s w w w w
% s w w w w
% s w w w w
% s w w w w
% s wwwwwwwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwwwwwwwwwwwwwwww
% s
% s
Citar como
YongGyu Han (2024). Align figures without overlap (https://www.mathworks.com/matlabcentral/fileexchange/55468-align-figures-without-overlap), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
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.