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
Cita come
YongGyu Han (2025). Align figures without overlap (https://it.mathworks.com/matlabcentral/fileexchange/55468-align-figures-without-overlap), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
