5.0

5.0 | 5 ratings Rate this file 23 Downloads (last 30 days) File Size: 62.5 KB File ID: #37176
image thumbnail

Distribute figures

by

 

15 Jun 2012 (Updated )

This function can distribute all open figures on different parts of the screen(s).

| Watch this File

File Information
Description

Are you tired of moving your figures around to see them all? This function does it all for you. It can distribute all figures on the left part, the right part or on the whole screen. It also supports secondary monitor(s) where the figures can be distributed and some other features.
>>>> A sample image can be found here: http://i58.tinypic.com/wjidk6.png <<<<<

The calls needed to distribute in the shown pattern is only:

distFig('Pos','NW' , 'Only',1);
distFig('Pos','SW' , 'Only',[2,3,4] , 'Cols', 3);
distFig('Pos','NE' , 'Rows',2 , 'Only', [5,6]);
distFig('Pos','SE' , 'Cols',4 , 'Not', (1:6));

The function should work for all resolutions (also different resolutions on different monitors).

Syntax:

distFig(...,'Screen',Value)
distFig(...,'Position',Value)

distFig(...,'Rows',Value)
distFig(...,'Columns',Value)

distFig(...,'Not',Value)
distFig(...,'Only',Value)
distFig(...,'Offset',Value)

distFig(...,'AspectRatio',Value)
distFig(...,'Extra',Value)
distFig(...,'Menu',Value)
distFig(...,'Transpose',Value)
distFig(...,'Simulink',Value)

Description:

distFig(...,'Screen',Value) assigns where the figures will be
distributed.
Synonums for 'Screen' are 'Scr', 'S'. Value can be:
'Left' / 'L'
'Right' / 'R'
'Center' / 'C' (Default)

distFig(...,'Position',Value) assigns in which part of the screen the
figures will be distributed.
Synonums for 'Position' are 'Pos', 'P'. Value can be:
'W' / 'West' / 'Left' / 'L'
'E' / 'East' / 'Right' / 'R'
'N' / 'North'
'S' / 'South'
'Center' / 'C' (Default)
Positions can be combined to limit the area of distributing. For
instance: 'WW' only distributes in the left quarter, whereas 'EW'
distributes in the eastern part, but only in the west of this area.

distFig(...,'Rows',Value) assigns how many rows the figures will be
distributed on.
Synonums for 'Rows' are 'R'. Value can be:
1...n
'Auto' / -1
'Auto' indicates that it automatically calculates the number of required
rows.

distFig(...,'Columns',Value) assigns how many rows the figures will be
distributed on.
Synonums for 'Columns' are 'Column', 'Cols' or 'Col'. Value can be:
1...n
'Auto' / -1
'Auto' indicates that it automatically calculates the number of required
columns.

distFig(...,'Not',Value) excludes specified figures from the distribution
list. Value must be an array with the excluded figure numbers. The
default value is [].

distFig(...,'Only',Value) does only distrubute specified figures. Value
must be an array with the figure which will be destributed. The
default value is [].

The remaining options are described in the file.

Required Products MATLAB
MATLAB release MATLAB 8.3 (R2014a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
04 Jun 2014 Anders

Often i used to be both tired and depressed - but then I tried Quack Simonsen's mircale function. Now I feel much better - thanks Simonsen!

29 May 2014 Anders Simonsen

@Ivan: Sorry for the late response. Yes - the new function does support different screen resolutions. :)

31 Mar 2014 Ivan

Does it support different screen resolutions? Or just 1920*1080?

29 Nov 2013 Mark Søndergaard Sørensen

Exactly what I was looking for and easy to use.

29 Nov 2013 Tobias Olesen

Great funktion!

27 Jul 2012 H

Thanks!

20 Jun 2012 Anders Simonsen

Thanks. So I assume you would have preferred something like distFig('Position','Left','Screen','Right');?

20 Jun 2012 Deborah

Nice function. Although I think it doesn't make any sense to accept multiple character input like 'r','l' since only the last input is used by the function.

Updates
18 Jun 2012

Removed a misplaced "nargin".

02 Jul 2012

Added the 'Rows' and 'Offset' properties and changed the input mode a more logical way.

03 Jul 2012

Added a few lines to the description.

06 May 2013

A minor update

29 May 2014

The whole function has been updated to support different screen resolutions along with other useful features.

02 Jun 2014

Updated description

Contact us