#NEWLINE# def set_color_codes( palette = 'deep' ) : #NEWLINE# #INDENT# 'Change how matplotlib color shorthands are interpreted.\n\n    Calling this will change how shorthand codes like "b" or "g"\n    are interpreted by matplotlib in subsequent plots.\n\n    Parameters\n    ----------\n    palette : {deep, muted, pastel, dark, bright, colorblind}\n        Named seaborn palette to use as the source of colors.\n\n    See Also\n    --------\n    set : Color codes can be set through the high-level seaborn style\n          manager.\n    set_palette : Color codes can also be set through the function that\n                  sets the matplotlib color cycle.\n\n    Examples\n    --------\n\n    Map matplotlib color codes to the default seaborn palette.\n\n    .. plot::\n        :context: close-figs\n\n        >>> import matplotlib.pyplot as plt\n        >>> import seaborn as sns; sns.set()\n        >>> sns.set_color_codes()\n        >>> _ = plt.plot([0, 1], color="r")\n\n    Use a different seaborn palette.\n\n    .. plot::\n        :context: close-figs\n\n        >>> sns.set_color_codes("dark")\n        >>> _ = plt.plot([0, 1], color="g")\n        >>> _ = plt.plot([0, 2], color="m")\n\n    ' #NEWLINE# if ( palette == 'reset' ) : #NEWLINE# #INDENT# 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 ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# colors = ( SEABORN_PALETTES [ rgb ] + [ ( 0.1 , 0.1 , 0.1 ) ] ) #NEWLINE# #UNINDENT# for ( code , color ) in zip ( 'bgrmyck' , colors ) : #NEWLINE# #INDENT# rgb = mpl . colors . colorConverter . to_rgb ( color ) #NEWLINE# mpl . colors . colorConverter . colors [ code ] = rgb #NEWLINE# mpl . colors . colorConverter . cache [ code ] = rgb