[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorre
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring |
Date: |
Fri, 07 Nov 2014 12:11:22 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?43559>
Summary: "hold on" causes "plot" to use incorrect series
colouring
Project: GNU Octave
Submitted by: None
Submitted on: Fri 07 Nov 2014 12:11:20 UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: A. Tombs
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.2
Operating System: GNU/Linux
_______________________________________________________
Details:
Each invocation of "plot" should use the same colour order for data series
(usually Blue Green Red etc.). The "hold on" command should cause the graphs
produced by each "plot" command to be drawn on the same figure.
It seems to me that when a "hold on" is issued, the colour orders used for the
subsequent "plot" calls are modified in a non-trivial way.
To reproduce, run the following:
x=[0;1];
y=[0,0,0;1,2,3];
figure;
plot(x,y);
hold on;
z = y+[0,0,0;0.5,0.5,0.5];
plot(x,z);
Expected: Six lines plotted with colours (in ascending order) Blue, Blue,
Green, Green, Red, Red.
Observed: Six lines plotted with colours Blue, Blue, Green, Magenta, Red, Dark
Yellow.
It seems as though "hold on" causes the first series of the second plot to use
the correct colour (Blue), but the other series use incorrect colours from
further along in the colour order.
This behaviour conflicts with Matlab and previous versions of Octave (I tested
3.6.0, which shows the expected behaviour).
Note that his behaviour is also different from the "hold all" command, which
causes the subsequent "plot" calls to continue through the default colour
order. "hold all" seems to be implemented correctly, giving Blue, Cyan, Green,
Magenta, Red, Dark Yellow in my above example.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43559>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring,
anonymous <=
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, Rik, 2014/11/07
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, Rik, 2014/11/09
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, A. Tombs, 2014/11/14
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, Rik, 2014/11/21
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, A. Tombs, 2014/11/21
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, Michael Godfrey, 2014/11/21
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, Rik, 2014/11/22
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, Rik, 2014/11/22
- [Octave-bug-tracker] [bug #43559] "hold on" causes "plot" to use incorrect series colouring, Michael Godfrey, 2014/11/23