def set_color_codes(palette='deep'):
 if (palette == 'reset'):
  colors = [(0.0, 0.0, 1.0), (0.0, 0.5, 0.0), (1.0, 0.0, 0.0), (0.75, 0.75, 0.0), (0.75, 0.75, 0.0), (0.0, 0.75, 0.75), (0.0, 0.0, 0.0)]
 else:
  colors = (SEABORN_PALETTES[palette] + [(0.1, 0.1, 0.1)])
 for (code, color) in zip('bgrmyck', colors):
  rgb = mpl.colors.colorConverter.to_rgb(color)
  mpl.colors.colorConverter.colors[code] = rgb
  mpl.colors.colorConverter.cache[code] = rgb

def set_color_codes ( palette = 'deep' ) : if ( palette == 'reset' ) : colors = [ ( 0.0 , 0.0 , 1.0 ) , ( 0.0 , 0.5 , 0.0 ) , ( 1.0 , 0.0 , 0.0 ) , ( 0.75 , 0.75 , 0.0 ) , ( 0.75 , 0.75 , 0.0 ) , ( 0.0 , 0.75 , 0.75 ) , ( 0.0 , 0.0 , 0.0 ) ] else : colors = ( SEABORN_PALETTES [ palette ] + [ ( 0.1 , 0.1 , 0.1 ) ] ) for ( code , color ) in zip ( 'bgrmyck' , colors ) : rgb = mpl . colors . colorConverter . to_rgb ( color ) mpl . colors . colorConverter . colors [ code ] = rgb mpl . colors . colorConverter . cache [ code ] = rgb
change how matplotlib color shorthands are interpreted .