% IMPORTFIG(Figfilename,Axes) opens a fig file and places the
% contents into another axes such as on a subplot.
Useful if you have lots as fig files and you want to view/tile them together.
Stuart McGarrity (2020). Import Fig File to Axes (https://www.mathworks.com/matlabcentral/fileexchange/3939-import-fig-file-to-axes), MATLAB Central File Exchange. Retrieved .
Hope I'm not stepping on toes, linking to my script, but for those that want subplot support, I made something similar that montages currently open figures, and I just added a version today that will read figure files (though it's the same as last, but opens them invisible,reads,then closes them). It will replot subplots (just grabs all axes from each figure and excludes colorbars).
I didn't look at this one until now, so it may be inferior, but I believe it does what it should. Hope some find it helpful.
Useful in itself, but would be perfect if it could import subplot based figs to a new axes (ie redesign the axes)
Does exactly what it was supposed to!
Thanks, that is what I needed
Exactly what I needed! Works perfectly
Worked perfectly for me. Saved me a tonne of time.
good, but some warning happens
Hmm... After restarting Matlab next day this function worked as intended. I'm not sure what caused that message anymore (Invalid uitoolbar property: 'Position'.)
using example or any variations of it
in Matlab r14(SP3) gives error:
??? Error using ==> set
Invalid uitoolbar property: 'Position'.
Nice script. Might want to enable copying of the legend from the old plot to the subplot
It doesn't work well , if you want in a subplot a figure with subplot