Technical discussion about Matlab and issues related to Digital Signal Processing.
Hi all I have a question about "subplot". How to put some existing figures (.fig) into a subplot figure? Specifically, say I have created 6 figures, and I wanna place them into a figure as a array [3,2]. "subplot(3,2,1);...; subplot(3,2,2);...; ....; subplot(3,2,6); ... " works when we create and place figures concurrently. But, how to place existing figures into the right position? Any clues are highly appreciated! Best, Xiaoxia Ye
load the datapoints of the exisitng figure in the current program, and subplot that at the right position u want. On Wed, Jun 4, 2008 at 8:54 AM, Ye, Xiaoxia <w...@yahoo.com> wrote: > Hi all > > I have a question about "subplot". How to put some existing figures (.fig) > into a subplot figure? Specifically, say I have created 6 figures, and I > wanna place them into a figure as a array [3,2]. "subplot(3,2,1);...; > subplot(3,2,2);...; ....; subplot(3,2,6); ... " works when we create and > place figures concurrently. But, how to place existing figures into the > right position? > > Any clues are highly appreciated! > > Best, > > Xiaoxia Ye >
You can open your existing figures in invisible and then just copy plots to
new figure, like this:
set(0,'Units','normalized')
fHandle = figure;
h = openfig('figurefile1','new','invisible');
set(gca(h),'Position', [0 .5 1 .5]);
copyobj(gca(h);,fHandle)
h = openfig('figurefile2','new','invisible');
set(gca(h),'Position', [0 0 1 .5]);
copyobj(gca(h),fHandle)
...
On 6/5/08, Saroj Kumar Mishra <s...@gmail.com> wrote:
>
> load the datapoints of the exisitng figure in the current program, and
> subplot that at the right position u want.
>
> On Wed, Jun 4, 2008 at 8:54 AM, Ye, Xiaoxia <w...@yahoo.com>
> wrote:
>
>> Hi all
>>
>> I have a question about "subplot". How to put some existing figures (.fig)
>> into a subplot figure? Specifically, say I have created 6 figures, and I
>> wanna place them into a figure as a array [3,2]. "subplot(3,2,1);...;
>> subplot(3,2,2);...; ....; subplot(3,2,6); ... " works when we create and
>> place figures concurrently. But, how to place existing figures into the
>> right position?
>>
>> Any clues are highly appreciated!
>>
>> Best,
>>
>> Xiaoxia Ye
>>