Code covered by the BSD License  

Highlights from
Split/Merge Matlab figures.

4.14286

4.1 | 7 ratings Rate this file 49 Downloads (last 30 days) File Size: 4.07 KB File ID: #31737

Split/Merge Matlab figures.

by

 

Split/Merge Matlab figures.

| Watch this File

File Information
Description

Split/Merge Matlab figure using a reference to the figures.
It can be given as a list of paths to one or more *.fig file, or as a list of opened figure handles.

Splitting figure takes a copy of each axes from a figure (or a list of figures) into new ones (one axes per figure).
Merging figures takes a copy of each axes into several axes, all in a new figure.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (9)
29 May 2014 Julia  
27 May 2013 Jcq

Works great.

That said, though, I don't really understand some of the inputs. ¿ SubsLoc? ¿ Is the "true" in examples related to the order?

Great to merge several figures in one. I used it to clone an existing figure , paste it into a subplot, and force diferent azimuth/elevation cameras.

02 Nov 2012 Matthijs

Very useful. The only problem I had is that it messes up the figure if the original axes units were not normalized. This can be fixed by inserting

set(C,'Units','normalized');

before

set(C, 'Position', NewPos);

21 Jun 2012 Addison Rich

Also exactly what I was looking for. If you want it display the legend as well, just insert this at line 162 (assuming your previous figures had a legend):

legend(C,'show');

01 Jun 2012 Jesús Lucio

Perfect. Exactly what it says. It will leave me from some headaches...

01 Jun 2012 Jesús Lucio  
24 May 2012 Durga Lal Shrestha

Does not return handles of subplot in SubHdl as these are deleted in line 160.
Handles should be of new object created as:

SubHdl(k) = copyobj(OldGca, FigHdl);
set(SubHdl(k), 'Position', NewPos);

Also it does not produce legends, otherwise it is useful.

08 Apr 2012 sdfsdfsdf  
27 Feb 2012 Alexander

Exactly, what I was looking for. The function compensates for essential but missing functionality in Matlab.
Thanks!

Contact us