octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request for Matlab test


From: Pantxo Diribarne
Subject: Re: Request for Matlab test
Date: Mon, 02 Mar 2015 23:18:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Le 02/03/2015 22:32, Brij Mohan Lal Srivastava a écrit :
Here's the output:

ans =

     0     0     1     1

 
z =  3*(1-x).^2.*exp(-(x.^2) - (y+1).^2) ...
   - 10*(x/5 - x.^3 - y.^5).*exp(-x.^2-y.^2) ...
   - 1/3*exp(-(x+1).^2 - y.^2)
 

ans =

     0
     0
     1


ans =

     1
     0
     0


ans =

     0
     1
     0


ans =

     0
     0
     1


ans =

     0
     0
     1


ans =

     1
     0
     0



Attaching the image in case you need.



On Tue, Mar 3, 2015 at 2:45 AM, Pantxo Diribarne <address@hidden> wrote:
Hi,

I would like to know how Matlab handles uipanels and their axes children. Can someone run the following in Matlab?

--------------------------------------------

hf = figure ();
hax = axes (); plot (1:10)
hu = uipanel ();
get (hu, 'position')
%% Is the uipanel drawn above/below  the axes?

set (hax, 'parent', hu)
hc = colorbar ();
hax2 = axes (); peaks ()
%% Is the last axes drawn above/below  the uipanel?

set (hax2, 'parent', hu)
ch = get (hu, 'children');
ch == hax
ch == hax2

axes (hax1);
ch = get (hu, 'children');
ch == hax
ch == hax2

axes (hax2);
ch = get (hu, 'children');
ch == hax
ch == hax2

--------------------------------------------

Thanks in advance,

Pantxo




--
Brij Mohan Lal Srivastava
M.S. by Research (CSE)
IIIT-H, Gachibowli
Hyderabad
+91 77997 28715

Thanks,

In Octave uipanels are always drawn on top of other axes, do Matlab behave the same way? e.g after
clf; uipanel ();axes ();

Anyway, I'll submit a bug report when I have synthesized all this.

Pantxo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]