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

« back to all changes in this revision

Viewing changes to chaco/default_colormaps.py

  • Committer: Package Import Robot
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2014-06-01 17:04:08 UTC
  • mfrom: (7.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20140601170408-m86xvdjd83a4qon0
Tags: 4.4.1-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
 - Let the binary-predeb target work on the usr/lib/python* directory
   as we don't have usr/share/pyshared anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
def bone(range, **traits):
144
144
    """ Generator function for the 'bone' colormap. """
145
145
 
146
 
    _data = {'red':   ((0., 0., 0.),(1.0, 1.0, 1.0)),
147
 
             'green': ((0., 0., 0.),(1.0, 1.0, 1.0)),
148
 
             'blue':  ((0., 0., 0.),(1.0, 1.0, 1.0))}
 
146
    _data = {'red':   ((0., 0., 0.), (0.746032, 0.652778, 0.652778), (1.0, 1.0, 1.0)),
 
147
             'green': ((0., 0., 0.), (0.365079, 0.319444, 0.319444), (0.746032, 0.777778, 0.777778), (1.0, 1.0, 1.0)),
 
148
             'blue':  ((0., 0., 0.), (0.365079, 0.444444, 0.444444), (1.0, 1.0, 1.0))}
149
149
 
150
150
    return ColorMapper.from_segment_map(_data, range=range, **traits)
151
151