octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #57313] plotyy fails to set parent of secondar


From: anonymous
Subject: [Octave-bug-tracker] [bug #57313] plotyy fails to set parent of secondary y-axis to parent of primary y-axis
Date: Wed, 27 Nov 2019 04:38:06 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

URL:
  <https://savannah.gnu.org/bugs/?57313>

                 Summary: plotyy fails to set parent of secondary y-axis to
parent of primary y-axis
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 27 Nov 2019 09:38:04 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I've got a figure which contains a panel and a plot nested inside the panel.
When I call plotyy(), the first line gets plotted into my primary y-axis as
expected, but the secondary y-axis doesn't show up / gets plotted behind the
panel. The 'parent' of the primary y-axis is the panel while the 'parent' of
the new, secondary y-axis is the underlying figure. 

Here's some example code: 

h = figure(1);
p = uipanel(h,'title','test panel');
ax = axes('parent',p);
a = (1:10); %dummy
[yyax,~,~] = plotyy(gca,a,a,2.*a,sqrt(a));
display(get(get(yyax(1),'parent'),'type'))
display(get(get(yyax(2),'parent'),'type'))
%set new parent in order for the plot to show up
set(yyax(2),'parent',p)


Thanks in advance!




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57313>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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