Quantcast

Matlab test requested

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Matlab test requested

Andreas Weber-4
Could someone run the following code under Matlab?

figure (1); figure (2);
li = plot (1:10);
ax = gca ()
set (ax, 'parent', 1);
get(1, 'currentaxes') %octave returns [](0x0) here


Thanks, Andy

PS: The reason for the question is https://savannah.gnu.org/bugs/?41573

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Matlab test requested

Svante Signell-4
On Tue, 2014-08-19 at 16:21 +0200, Andreas Weber wrote:
> figure (1); figure (2);
> li = plot (1:10);
> ax = gca ()
> set (ax, 'parent', 1);
> get(1, 'currentaxes') %octave returns [](0x0) here

R2013b (8.2.0.701)

>> figure (1); figure (2);
>> li = plot (1:10);
>> ax = gca ()

ax =

  346.0011

>> set (ax, 'parent', 1);
>> get(1, 'currentaxes') %octave returns [](0x0) here

ans =

  346.0011



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Matlab test requested

Andreas Weber-4
Am 19.08.2014 16:31, schrieb Svante Signell:

> ax =
>
>   346.0011
>
>>> set (ax, 'parent', 1);
>>> get(1, 'currentaxes') %octave returns [](0x0) here
>
> ans =
>
>   346.0011

Great, thank you for testing.
-- Andy

Loading...