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

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

[Octave-bug-tracker] [bug #55002] plotyy: incorrect colororder for 2nd a


From: Rik
Subject: [Octave-bug-tracker] [bug #55002] plotyy: incorrect colororder for 2nd axis (with patch)
Date: Sat, 10 Nov 2018 10:10:17 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0

Update of bug #55002 (project octave):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

Interesting.  What does Matlab do for this test code?


set (0, 'DefaultAxesColorOrder', [1 0 0; 0 1 0; 0 0 1]);
x = linspace(0,10,11)';
[ax, h1, h2] = plotyy(x, [x, x.^2], x, [1-x]);
get([h1;h2], 'color')


If it is cycling the way you are suggesting then this should result in red,
green, and blue lines with red being the left axis and blue being the right
axis.

There looks to be a second bug in that the left y-axis is not red in this
example, but the default black.  This is only happening when there are more
than one line object and it occurs even with your patch applied.


(file #45399)
    _______________________________________________________

Additional Item Attachment:

File name: tst_plotyy.m                   Size:0 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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