~ubuntu-branches/ubuntu/utopic/python-chaco/utopic

« back to all changes in this revision

Viewing changes to chaco/default_colors.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-07-08 20:38:02 UTC
  • mfrom: (7.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110708203802-5t32e0ldv441yh90
Tags: 4.0.0-1
* New upstream release
* debian/control:
  - Depend on python-traitsui (Closes: #633604)
  - Bump Standards-Version to 3.9.2
* Update debian/watch file
* Remove debian/patches/* -- no longer needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""List of nice color palettes for Chaco"""
 
2
 
 
3
 
 
4
# This is a palette of 10 nice colors to use for mapping/discrete
 
5
# color differentiation.  From ColorBrewer.
 
6
cbrewer = [
 
7
    (0.65098039,  0.80784314,  0.89019608, 1.0),
 
8
    (0.12156863,  0.47058824,  0.70588235, 1.0),
 
9
    (0.69803922,  0.8745098 ,  0.54117647, 1.0),
 
10
    (0.2       ,  0.62745098,  0.17254902, 1.0),
 
11
    (0.98431373,  0.60392157,  0.6       , 1.0),
 
12
    (0.89019608,  0.10196078,  0.10980392, 1.0),
 
13
    (0.99215686,  0.74901961,  0.43529412, 1.0),
 
14
    (1.        ,  0.49803922,  0.        , 1.0),
 
15
    (0.79215686,  0.69803922,  0.83921569, 1.0),
 
16
    (0.41568627,  0.23921569,  0.60392157, 1.0),
 
17
    ]
 
18
 
 
19
palette11 = [
 
20
    (0.725490, 0.329412, 0.615686, 1.0),
 
21
    (0.121569, 0.313725, 0.552941, 1.0),
 
22
    (0.376471, 0.525490, 0.082353, 1.0),
 
23
    (0.435294, 0.380392, 0.572549, 1.0),
 
24
    (0.988235, 0.400000, 0.600000, 1.0),
 
25
    (0.133333, 0.588235, 0.976471, 1.0),
 
26
    (0.992157, 0.600000, 0.400000, 1.0),
 
27
    (0.611765, 0.200000, 0.380392, 1.0),
 
28
    (0.388235, 0.647059, 0.537255, 1.0),
 
29
    (0.545098, 0.686275, 0.874510, 1.0),
 
30
    (0.623529, 0.501961, 0.862745, 1.0),
 
31
    ]
 
32
 
 
33
palette14 = [
 
34
    (0.286275, 0.235294, 0.545098, 1.0),
 
35
    (0.976471, 0.709804, 0.313725, 1.0),
 
36
    (0.850980, 0.094118, 0.521569, 1.0),
 
37
    (0.431373, 0.662745, 0.431373, 1.0),
 
38
    (0.803922, 0.345098, 0.345098, 1.0),
 
39
    (0.015686, 0.749020, 0.403922, 1.0),
 
40
    (0.694118, 0.686275, 0.580392, 1.0),
 
41
    (0.376471, 0.298039, 0.788235, 1.0),
 
42
    (0.992157, 0.396078, 0.011765, 1.0),
 
43
    (0.298039, 0.776471, 0.615686, 1.0),
 
44
    (0.988235, 0.407843, 0.686275, 1.0),
 
45
    (0.000000, 0.600000, 0.984314, 1.0),
 
46
    (0.470588, 0.917647, 0.478431, 1.0),
 
47
    (0.627451, 0.250980, 0.815686, 1.0),
 
48
    ]
 
49
 
 
50
PALETTES = [cbrewer, palette11, palette14]
 
51
 
 
52