#NEWLINE# def bone( rng , **traits ) : #NEWLINE# #INDENT# "\n    Generator function for the 'bone' colormap. (Instead of faulty one\n    in Chaco.) Data from Matplotlib.\n    " #NEWLINE# _bone_data = { #NEWLINE# #INDENT# 'red' : ( ( 0.0 , 0.0 , 0.0 ) , ( 0.746032 , 0.652778 , 0.652778 ) , ( 1.0 , 1.0 , 1.0 ) ) , #NEWLINE# 'green' : ( ( 0.0 , 0.0 , 0.0 ) , ( 0.365079 , 0.319444 , 0.319444 ) , ( 0.746032 , 0.777778 , 0.777778 ) , ( 1.0 , 1.0 , 1.0 ) ) , #NEWLINE# 'blue' : ( ( 0.0 , 0.0 , 0.0 ) , ( 0.365079 , 0.444444 , 0.444444 ) , ( 1.0 , 1.0 , 1.0 ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# return ColorMapper . from_segment_map ( _bone_data , range = rng , ** traits )