Module ImportFrom alias Import alias FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd ListComp Call NameLoad BinOpMult NameLoad Num comprehension NameStore SubscriptLoad NameLoad Slice Num ListLoad NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num body Expr Str If CompareEq NameLoad Str body If CompareGtE NameLoad NameLoad body Raise Call NameLoad Str orelse Assign NameStore BinOpDiv BinOpMult Num BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad orelse If CompareEq NameLoad Str body If BoolOpOr CompareLt NameLoad Num CompareLtE NameLoad Num body Raise Call NameLoad Str orelse Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If BoolOpOr CompareLt NameLoad Num CompareLtE NameLoad Num body Raise Call NameLoad Str orelse Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Str If CompareLt NameLoad Num body Assign NameStore Num orelse If CompareGt NameLoad Num body Assign NameStore Num Assign NameStore BinOpDiv BinOpMult Call NameLoad BinOpMult BinOpMult Num AttributeLoad NameLoad attr NameLoad Num BinOpSub AttributeLoad NameLoad attr Num If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad BinOpAdd AttributeLoad NameLoad attr Num body Assign NameStore BinOpDiv BinOpMult Num NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad BinOpPow NameLoad Num orelse Raise Call NameLoad Str For NameStore SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call NameLoad NameLoad ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign NameStore Dict For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad Call NameLoad Call NameLoad BinOpDiv BinOpMult Num NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call NameLoad Call NameLoad NameLoad Return DictComp NameLoad BinOpAdd SubscriptLoad NameLoad Index BinOpMod NameLoad Call NameLoad NameLoad ListLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad decorator_list
N/A random shuffle N/A math _convert_color_format N/A N/A col alpha N/A N/A N/A N/A N/A N/A int N/A c 255 N/A c N/A col N/A 3 N/A alpha N/A ColorMap N/A N/A __init__ N/A N/A self cmap_name alpha levels N/A 255 10 N/A N/A 
        Converts continuous values into colors using matplotlib colorscales
        :param cmap_name: colormap name
        :param alpha: color alpha
        :param levels: discretize the colorscale into levels
         pylab get_cmap N/A N/A self cmap N/A get_cmap cmap_name N/A N/A self alpha alpha N/A N/A self levels levels N/A N/A self mapping N/A N/A to_color N/A N/A self value maxvalue scale minvalue N/A 0.0 N/A N/A 
        convert continuous values into colors using matplotlib colorscales
        :param value: value to be converted
        :param maxvalue: max value in the colorscale
        :param scale: lin, log, sqrt
        :param minvalue: minimum of the input values in linear scale (default is 0)
        :return: the color corresponding to the value
         N/A N/A scale lin N/A N/A N/A minvalue maxvalue N/A N/A N/A Exception minvalue must be less than maxvalue N/A N/A value N/A N/A 1.0 N/A value minvalue N/A maxvalue minvalue N/A N/A N/A scale log N/A N/A N/A N/A value 1 N/A maxvalue 1 N/A N/A N/A Exception value and maxvalue must be >= 1 N/A N/A value N/A N/A N/A math log value N/A N/A math log maxvalue N/A N/A N/A scale sqrt N/A N/A N/A N/A value 0 N/A maxvalue 0 N/A N/A N/A Exception value and maxvalue must be greater than 0 N/A N/A value N/A N/A N/A math sqrt value N/A N/A math sqrt maxvalue N/A N/A N/A Exception scale must be "lin", "log", or "sqrt" N/A N/A value 0 N/A N/A value 0 N/A N/A N/A value 1 N/A N/A value 1 N/A value N/A N/A N/A int N/A N/A 1.0 N/A self levels value 1.0 N/A N/A self levels 1 N/A N/A value N/A self mapping N/A N/A N/A N/A self mapping N/A value N/A _convert_color_format N/A N/A self cmap value N/A self alpha N/A N/A N/A self mapping N/A value N/A get_boundaries N/A N/A self maxvalue scale N/A N/A N/A edges N/A N/A colors N/A N/A i N/A range N/A N/A self levels 1 N/A N/A z N/A N/A 1.0 i N/A self levels N/A N/A scale lin N/A N/A N/A N/A edges append N/A maxvalue z N/A N/A N/A scale log N/A N/A N/A N/A edges append N/A N/A math exp N/A N/A N/A math log maxvalue z N/A N/A N/A scale sqrt N/A N/A N/A N/A edges append N/A maxvalue N/A z 2 N/A N/A N/A Exception scale must be "lin", "log", or "sqrt" N/A e N/A edges N/A -1 N/A N/A N/A N/A colors append N/A N/A self to_color e maxvalue scale N/A N/A edges colors N/A N/A create_set_cmap N/A N/A values cmap_name alpha N/A 255 N/A N/A 
    return a dict of colors corresponding to the unique values
    
    :param values: values to be mapped
    :param cmap_name: colormap name
    :param alpha: color alpha
    :return: dict of colors corresponding to the unique values
     N/A unique_values N/A list N/A set values N/A N/A shuffle unique_values pylab get_cmap N/A cmap N/A get_cmap cmap_name N/A d N/A N/A i N/A range N/A len unique_values N/A N/A N/A d N/A N/A unique_values N/A i N/A _convert_color_format N/A cmap N/A N/A 1.0 i N/A len unique_values alpha N/A d N/A colorbrewer N/A N/A values alpha N/A 255 N/A N/A 
    Return a dict of colors for the unique values.
    Colors are adapted from Harrower, Mark, and Cynthia A. Brewer.
    "ColorBrewer. org: an online tool for selecting colour schemes for maps."
    The Cartographic Journal 40.1 (2003): 27-37.

    :param values: values
    :param alpha: color alphs
    :return: dict of colors for the unique values.
     N/A basecolors N/A N/A 31 120 180 N/A 178 223 138 N/A 51 160 44 N/A 251 154 153 N/A 227 26 28 N/A 253 191 111 N/A 255 127 0 N/A 202 178 214 N/A 106 61 154 N/A 255 255 153 N/A 177 89 40 N/A unique_values N/A list N/A set values N/A N/A k N/A N/A basecolors N/A N/A i N/A len basecolors N/A alpha N/A N/A i k N/A enumerate unique_values N/A