[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
axes color order ?
From: |
Schirmacher, Rolf |
Subject: |
axes color order ? |
Date: |
Fri, 5 Oct 2007 21:58:44 +0200 |
Hello,
I want to define a certain color order for the lines coming up in a plot,
i.e. some special colors instead of the standard of blue, green, red, ...
In octave 2.9.13, the colors are defined by the color_rotation array in the
__next_line_color__.m function of the plot package. Whenever a new axes is
created, the color_index is reset and the persistent variable color_rotation
is refreshed with the fixed default values. So it seems like supplying
different values in this function should do what I want... color handling
like choosing the next and using it for the plot is completely implemented
... fine!
Now, at the other program, there seems to be a "ColorOrder" property of an
axes and this defines the array of rgb values in the way as it could
directly be used in __next_line_color__.m instead of the default
color_rotation there. In addition, a figure has a "DefaultAxesColorOrder"
property which is inherited by default by all axes within the figure and the
root figure (handle 0) also has such a property which is by default
inherited by all figures, so setting the "DefaultAxesColorOrder" for handle
0 makes all figures appear with the customised color orders.
These properties are currently not implemented in octave.
My question is: Is there any simple, "user space" (i.e. m-files only) way to
add an additional property to a graphics object? Then I could easily add the
properties and their handling to the existing code. Actually I did not find
such a possibility nor did I find any hint in the documentation (get/set
seem to work for predefined properties only...)
Any idea is appreciated.
Rolf
- axes color order ?,
Schirmacher, Rolf <=