[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plotyy help
From: |
c. |
Subject: |
Re: plotyy help |
Date: |
Wed, 22 Jan 2014 19:34:58 +0100 |
On 22 Jan 2014, at 19:25, Rik <address@hidden> wrote:
> 1/22/14
>
> Can someone with access to Matlab run the following code? I'm trying to
> see what state the axes and figure window are left in.
>
> close all
> x = 1:10;
> y1 = 1:10;
> y2 = 10:-1:1;
> [ax, h1, h2] = plotyy (x, y1, x, y2);
> ax_list = ax
> curr_ax = gca
> ax_order = get (gcf, 'children')
> get (gcf, 'nextplot')
> get (ax_list, 'nextplot')
>
> Thanks,
> Rik
Here it is:
>> close all
>> x = 1:10;
>> y1 = 1:10;
>> y2 = 10:-1:1;
>> [ax, h1, h2] = plotyy (x, y1, x, y2);
>> ax_list = ax
ax_list =
173.0011 175.0011
>> curr_ax = gca
curr_ax =
173.0011
>> ax_order = get (gcf, 'children')
ax_order =
175.0011
173.0011
>> get (gcf, 'nextplot')
ans =
add
>> get (ax_list, 'nextplot')
ans =
'replace'
'replace'
>> version
ans =
7.12.0.635 (R2011a)
>>