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

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

[Octave-bug-tracker] [bug #52302] axes color wrong in plotyy demo 3


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #52302] axes color wrong in plotyy demo 3
Date: Sun, 29 Oct 2017 20:21:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #1, bug #52302 (project octave):

What do you consider the wrong color?  I ask because there are a several
observations.

First, the demo is a conflict in the sense of two y axes per plot, plotted one
on top of the other means the axes coincide.  Hence one axis must cover the
other.  That's why although the axes say

(orange) Left axis is Blue
(gold) Right axis is Orange

the color doesn't match.  (Take out the second plotyy, and the description is
correct.)  The blue (cyan technically), left axis is actually "underneath" the
orange, left axis.  But even "underneath" isn't correct as I tried the
following to shift the range of the two different plots


%! [~, h3, h4] = plotyy (t+1, 2*x, t+1, 0.5*y);


but saw no remnants of blue alongside the orange.  So, the most logical change
should really be "Left axis is Orange" and "Right axis is Gold".

But notice, the demo doesn't actually specify the color anywhere.  Someone
must have just looked at the color and written the text.  Whether the color
sequence scheme is guaranteed as versions go forward, who knows?

And one last observation, which may be more critical, is that the first plot
was 

Blue (left)  Orange (right)

and the second plot was

Orange (left)  Gold (right)

such that the color Orange is shared across two different plots, when maybe it
should be

Gold (left)  Magenta (right)

or whatever color comes after Gold, for the second plot.  I suppose the
plotting routines are advancing the color by one with each new plot not
realizing that two plots are created per each plotyy.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52302>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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