File Exchange

image thumbnail

Spreadfigures

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

1 Download

Updated 26 Mar 2018

GitHub view license on GitHub

Spreadfigures.m
% 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 https://github.com/goosst/matlabfunctions/ 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')

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" :
https://www.mathworks.com/matlabcentral/answers/98331-is-it-possible-to-maximize-minimize-or-get-the-state-of-my-figure-programmatically-in-matlab

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

Inspired by: tightfig(hfig)