[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50511] colororder property seems to be reset
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot |
Date: |
Fri, 10 Mar 2017 14:55:31 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #50511 (project octave):
Status: None => Works For Me
_______________________________________________________
Follow-up Comment #3:
Are you sure this isn't the correct behavior? See the equivalent ColorOrder
property for Matlab at
http://www.mathworks.com/help/matlab/ref/axes-properties.html.
The ColorOrder property belongs to the current axes. If you issue a new plot
command the old axes gets reset. If you want a persistent colororder you can
either use 'hold on' for an individual figure, or 'set (0,
"DefaultAxesColorOrder", ...) to set a global default.
Test code for both Octave and Matlab:
close all
hax = gca
co1 = get (hax, 'colororder')
set (hax, 'colororder', [1 0 0; 0 1 0; 0 0 1])
co2 = get (hax, 'colororder')
plot (1:10)
co3 = get (hax, 'colororder')
if (isequal (co1, co3))
disp ("plot command resets axes");
else
disp ("plot command preserves axes");
end
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50511>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Andrei Kramer, 2017/03/10
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Dan Sebald, 2017/03/10
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Dan Sebald, 2017/03/10
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot,
Rik <=
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Andrei Kramer, 2017/03/10
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Andrei Kramer, 2017/03/10
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Rik, 2017/03/10
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Andrei Kramer, 2017/03/12
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Rik, 2017/03/12
- [Octave-bug-tracker] [bug #50511] colororder property seems to be reset on plot, Markus Mützel, 2017/03/12