[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39344] Correct ColorOrder over multiple plots
From: |
Carl |
Subject: |
[Octave-bug-tracker] [bug #39344] Correct ColorOrder over multiple plots |
Date: |
Wed, 26 Jun 2013 17:13:44 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 |
Follow-up Comment #3, bug #39344 (project octave):
A little more explanation:
The original code used persistent variables to keep track of the ColorOrder
and color_index within that order. These variables were shared among all
plots so they would interfere with each other and an individual plot would not
follow its assigned ColorOrder. Also, the persistent ColorOrder did not
always match with the actual ColorOrder assigned to the current plot.
The included patch reads the ColorOrder property for the current axes and
calculates the color_index (and style_index) based on the number of children
in that axes. This is independent of any other plots and provides a
consistent and predictable result.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39344>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/