source: products/quintagroup.analytics/branches/treemap/quintagroup/analytics/browser/const.py @ 3372

Last change on this file since 3372 was 3372, checked in by potar, 12 years ago

Added new branch

File size: 2.4 KB
Line 
1""" Module dedicated to provide const for treemap """
2
3from PIL import Image
4import os
5
6DATA_PATH = os.path.abspath(os.path.dirname(__file__)) + '/data'
7FONT_PATH = DATA_PATH + '/fonts'
8
9IMAGE_MASK = Image.open( DATA_PATH + "/rect.png" )
10USER_FONT = "BI"
11WIDTH= 900
12HEIGHT= 700
13
14TEXT_SATURATION = 0.5
15TEXT_LIGHT = 0.3
16
17MAX_PERCENT = 100
18MAX_ANGLE = 360
19
20DIV_RGB = 255.0
21DIV_SIDE = 11
22
23# FATHER - it means root rectangle
24DIVERSION_FATHER = 6
25
26# CHILD - it means in user rectangle
27DIVERSION_CHILD = 2
28DIVERSION_VERTICAL = 10
29
30DIVERSION_TEXT_BORDER = 1
31
32# V - vertical
33DIVERSION_TEXT_CHILD_V = 8
34
35# H - horizontal
36DIVERSION_TEXT_CHILD_H = 8
37
38FONT_SIZE_FATHER = DIVERSION_VERTICAL + 5
39FONT_SIZE_CHILDREN_MIN = 15
40
41FRAME_COLOR = "grey"
42FRAME_DIVERSION = 10
43
44USER_COLOR = ["#814949","#806000","#3f5d29",
45              "#3c3c7b","purple","Brown","Magenta","Cyan",
46              "Maroon","Navy","Aquamarine","Turquoise","Violet","Pink"]
47
48
49COLOR_FIELD =["#fde5be",
50              "#4af6a0",
51              "#9c1b9c",
52              "#ad3333",
53              "#f4a889",
54              "#ccafcc",
55              "#db76d8",
56              "#0dd0d3",
57              "#6f6f6f",
58              "#72932d",
59              "#647841",
60              "#161695",
61              "#c064d7",
62              "#c3bd78",
63              "#c93f3f",
64              "#b049db",
65              "#ecbc41",
66              "#ed2e54",
67              "#5252e0",
68              "#4aeaea",
69              "#ffafbd",
70              "#f7f64b",
71              "#7d94ac",
72              "#6ee793",
73              "#fb7439",
74              "#d37272",
75              "#e3e0ff",
76              "#93db93",
77              "#768594",
78              "#a3d63e",
79              "#cd853f",
80              "#ffc0cb",
81              "#dda0dd",
82              "#b0e0e6",
83              "#800080",
84              "#ff0000",
85              "#bc8f8f",
86              "#4169e1",
87              "#8b4513",
88              "#fa8072",
89              "#f4a460",
90              "#2e8b57",
91              "#a0522d",
92              "#c0c0c0",
93              "#87ceeb",
94              "#6a5acd",
95              "#708090",
96              "#708090",
97              "#fffafa",
98              "#00ff7f",
99              "#4682b4",
100              "#d2b48c",
101              "#008080",
102              "#d8bfd8",
103              "#ff6347",
104              "#40e0d0",
105              "#ee82ee",
106              "#f5deb3",
107              "#f5f5f5",
108              "#ffff00",
109              "#9acd32"]
110
Note: See TracBrowser for help on using the repository browser.