Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Is it possible to merge docked figures?
Date: Sun, 20 Sep 2009 21:38:04 +0000 (UTC)
Organization: Loughborough University
Lines: 7
Message-ID: <h967bs$9h4$1@fred.mathworks.com>
References: <h9104k$ald$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1253482684 9764 172.30.248.37 (20 Sep 2009 21:38:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 20 Sep 2009 21:38:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:571663


"Wouter Numan" <ktjukker@hotmail.com> wrote in message <h9104k$ald$1@fred.mathworks.com>...
> I have created two separate figures and want to merge them into a single figure that can be exported for use in a report. Is it possible to dock the two figures, for instance to a top and bottom tile, and merge them into a single figure with the old figures acting as subplots?
> 
> Alternatively, is it possible to plot existing figures in a subplot?
>  

i don't think there is a way to do this that is as straightforward as you want. the only way i can think of is to extract the data from your existing plots using 'get' for the xdata and ydata. Then replot into a single axes or into separate subplots within a single figure.