File Exchange

image thumbnail


version (7.83 KB) by stijn
spread and size figures over your entire screen


Updated 26 Mar 2018

From GitHub

View license on GitHub

% position and resize figures over your entire screen to make analyzing data easier.
% if no input is given to the function: spread all plotted figures over the screen and link all x-axes
% optional arguments:
% Spreadfigures('tight','nolink',[fighandle1;fighandle2])
% * 'tight': remove unnecessary whitespace in borders, makes use of other file-exchange submission
% * 'nolink': don't link x-axes
% * '[fighandle1;fighandle2] (function UseFig can be useful for this)
% Example:
% f1=figure(1)
% plot([0:10])
% xlabel('time(s)','Fontsize',15)
% ylabel('unit 1','Fontsize',15)
% title('test','Fontsize',16)
% grid on
% f2=figure(2)
% plot([0:2:20])
% xlabel('time(s)','Fontsize',15)
% ylabel('unit 2','Fontsize',15)
% title('test2','Fontsize',16)
% grid on
% % test out several options:
% % Spreadfigures
% % Spreadfigures('tight',[f1;f2])
% % %Spreadfigures([f1;f2],'nolink','tight')

Cite As

stijn (2021). Spreadfigures (, GitHub. Retrieved .

Comments and Ratings (2)

Baptiste P

Alternatively, you can check out this link, where a staff member attached a file which contains protected function files (workaround), which enable you to "maximize, minimize or get the state of a figure" :

Zoran Latinovic

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: tightfig(hfig)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!