|
@@ -39,11 +39,11 @@ class DataPoint(Serializable):
|
|
|
|
|
|
class Color:
|
|
|
# enumeration of all colors
|
|
|
- BLUE, GREEN, RED, CYAN, MAGENTA, YELLOW, BLACK, WHITE = range(8)
|
|
|
+ BLUE, GREEN, RED, CYAN, MAGENTA, YELLOW, BLACK, WHITE = ("blue", "green", "red", "cyan", "magenta", "yellow", "black", "white")
|
|
|
|
|
|
class LineStyle:
|
|
|
# enumeration of all line styles
|
|
|
- SOLID, DASHED, DASHDOT, DOTTED, PIXEL, POINT, CIRCLE, STAR, PLUS, X = range(10)
|
|
|
+ SOLID, DASHED, DASHDOT, DOTTED, PIXEL, POINT, CIRCLE, STAR, PLUS, X = ("solid", "dashed", "dashdot", "dotted", "pixel", "point", "circle", "star", "plus", "x")
|
|
|
|
|
|
class Axis(Serializable):
|
|
|
|
|
@@ -59,4 +59,4 @@ class Axis(Serializable):
|
|
|
|
|
|
class XAxis(Axis): pass
|
|
|
class YAxis(Axis): pass
|
|
|
-
|
|
|
+
|