Module Import alias identifier ClassDef bases body Expr Str Assign TupleStore NameStore NameStore NameStore ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Str Str body Assign AttributeStore NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Num Num Str Assign NameStore ListLoad Str Str Assert CompareIn NameLoad NameLoad Str If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareEq NameLoad Str body For NameStore AttributeLoad NameLoad attr body Pass orelse With Call NameLoad NameLoad Str NameStore body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpDiv Call NameLoad NameLoad Num If CompareGt NameLoad Num body Assign NameStore BinOpPow BinOpDiv BinOpAdd NameLoad Num Num Num orelse Assign NameStore BinOpDiv NameLoad Num Assign SubscriptStore NameLoad Index NameLoad BinOpMult NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpDiv Call NameLoad NameLoad Num If CompareGt NameLoad Num body Assign NameStore BinOpSub BinOpMult Num Call AttributeLoad NameLoad attr NameLoad BinOpDiv Num Num Num orelse Assign NameStore BinOpMult NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad BinOpMult NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Num If CompareGt NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad BinOpDiv Num Num orelse Return BinOpAdd BinOpMult Num NameLoad BinOpDiv Num Num decorator_list Assign NameStore BinOpMult Num BinOpSub Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr BinOpDiv Num Num Assign NameStore BinOpMult Num BinOpSub Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMult Num BinOpSub Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore BinOpDiv Num Num Assign NameStore BinOpAdd BinOpMult NameLoad NameLoad NameLoad If CompareGt NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Num orelse Return BinOpDiv BinOpSub NameLoad NameLoad NameLoad decorator_list Assign NameStore BinOpMult AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpDiv NameLoad Num BinOpDiv BinOpAdd NameLoad Num Num Assign NameStore BinOpMult AttributeLoad NameLoad attr Call NameLoad BinOpDiv BinOpAdd NameLoad Num Num Assign NameStore BinOpMult AttributeLoad NameLoad attr Call NameLoad BinOpSub BinOpDiv BinOpAdd NameLoad Num Num BinOpDiv NameLoad Num Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareGtE NameLoad NameLoad body Return NameLoad orelse Assign NameStore BinOpDiv BinOpMult NameLoad Call AttributeLoad NameLoad attr BinOpSub BinOpPow NameLoad Num BinOpPow NameLoad Num BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad BinOpDiv UnaryOpUSub AttributeLoad NameLoad attr Num body Return BinOpAdd NameLoad NameLoad orelse Return BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareGt NameLoad Num CompareGt NameLoad Num CompareGt Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad BinOpDiv AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Num If CompareLt NameLoad Num body Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMult Num NameLoad orelse Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore BinOpSub BinOpMult Num NameLoad Num If BoolOpAnd CompareLt NameLoad Num CompareGt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad orelse If BoolOpAnd CompareLt NameLoad Num CompareGt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult BinOpSub Num NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num For NameStore Call NameLoad Num body Assign SubscriptStore NameLoad ExtSlice Slice Num BinOpAdd NameLoad Num Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad BinOpAdd NameLoad Num Assign SubscriptStore NameLoad ExtSlice Slice NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad BinOpAdd NameLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Call AttributeLoad NameLoad attr NameLoad Return BinOpDiv NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call AttributeLoad NameLoad attr ListLoad Num Num Num Call AttributeLoad NameLoad attr ListLoad Num Num Num Num body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Assign NameStore Dict Str Str Str ListLoad ListLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num ImportFrom alias Assign NameStore Call NameLoad Str NameLoad Return NameLoad decorator_list
N/A N/A numpy np ColorMapCreator N/A N/A N/A 
    Class ColorMapCreator:
    Create diverging colormaps from RGB1 to RGB2 using the method of Moreland
    or a simple CIELAB-interpolation. numColors controls the number of color
    values to output (odd number) and divide gives the possibility to output
    RGB-values from 0.0-1.0 instead of 0-255. If a filename different than
    "" is given, the colormap will be saved to this file, otherwise a simple
    output using print will be given.
     N/A N/A Xn Yn Zn N/A 95.047 100.0 108.883 N/A transM N/A N/A np array N/A N/A 0.4124564 0.2126729 0.0193339 N/A 0.3575761 0.7151522 0.119192 N/A 0.1804375 0.072175 0.9503041 __init__ N/A N/A self RGB1 RGB2 numColors divide method filename N/A 33.0 255.0 moreland N/A N/A N/A self numColors numColors N/A N/A N/A N/A np mod numColors 2 1 For diverging colormaps odd numbers of colors are desireable! N/A knownMethods N/A moreland lab N/A N/A method knownMethods Unknown method was specified! N/A N/A method N/A knownMethods N/A 0 N/A N/A N/A self colorMap N/A N/A self generateColorMap RGB1 RGB2 divide N/A N/A N/A method N/A knownMethods N/A 1 N/A N/A N/A self colorMap N/A N/A self generateColorMapLab RGB1 RGB2 divide N/A N/A filename N/A N/A c N/A self colorMap N/A N/A N/A N/A N/A open filename w f N/A N/A c N/A self colorMap N/A N/A N/A N/A f write N/A N/A {0}, {1}, {2}
 format N/A c N/A 0 N/A c N/A 1 N/A c N/A 2 N/A rgblinear N/A N/A self RGB N/A N/A N/A 
        Conversion from the sRGB components to RGB components with physically
        linear properties.
         N/A RGBlinear N/A N/A np zeros N/A 3 N/A N/A i value N/A enumerate RGB N/A N/A value N/A N/A float value 255.0 N/A N/A value 0.04045 N/A N/A value N/A N/A N/A value 0.055 1.055 2.4 N/A N/A value N/A value 12.92 N/A N/A RGBlinear N/A i N/A value 100.0 N/A RGBlinear N/A sRGB N/A N/A self RGBlinear N/A N/A N/A 
        Back conversion from linear RGB to sRGB.
         N/A RGB N/A N/A np zeros N/A 3 N/A N/A i value N/A enumerate RGBlinear N/A N/A value N/A N/A float value 100.0 N/A N/A value 0.00313080495356 N/A N/A value N/A N/A 1.055 N/A N/A np power value N/A 1.0 2.4 0.055 N/A N/A value N/A value 12.92 N/A N/A RGB N/A i N/A round N/A value 255.0 N/A RGB N/A rgb2xyz N/A N/A self RGB N/A N/A N/A 
        Conversion of RGB to XYZ using the transfer-matrix
         N/A N/A N/A np dot N/A N/A self rgblinear RGB N/A self transM N/A xyz2rgb N/A N/A self XYZ N/A N/A N/A 
        Conversion of RGB to XYZ using the transfer-matrix
         N/A N/A N/A self sRGB N/A N/A np dot XYZ N/A N/A np array N/A N/A N/A np matrix N/A self transM I N/A rgb2Lab N/A N/A self RGB N/A N/A N/A 
        Conversion of RGB to CIELAB
         N/A N/A X Y Z N/A N/A N/A N/A self rgb2xyz RGB tolist f N/A N/A x N/A N/A N/A limit 0.008856 N/A N/A x limit N/A N/A N/A N/A np power x N/A 1.0 3.0 N/A N/A N/A N/A 7.787 x N/A 16.0 116.0 N/A N/A L N/A 116.0 N/A N/A f N/A Y N/A self Yn N/A 16.0 116.0 N/A a N/A 500.0 N/A N/A f N/A X N/A self Xn N/A f N/A Y N/A self Yn N/A b N/A 200.0 N/A N/A f N/A Y N/A self Yn N/A f N/A Z N/A self Zn N/A N/A N/A np array N/A L a b N/A Lab2rgb N/A N/A self Lab N/A N/A N/A 
        Conversion of CIELAB to RGB
         N/A N/A L a b N/A N/A Lab tolist finverse N/A N/A x N/A N/A N/A xlim 0.008856 N/A a 7.787 N/A b N/A 16.0 116.0 N/A ylim N/A N/A a xlim b N/A N/A x ylim N/A N/A N/A N/A np power x 3 N/A N/A N/A N/A x b a N/A N/A X N/A N/A self Xn N/A finverse N/A N/A a 500.0 N/A N/A L 16.0 116.0 N/A Y N/A N/A self Yn N/A finverse N/A N/A L 16.0 116.0 N/A Z N/A N/A self Zn N/A finverse N/A N/A N/A L 16.0 116.0 N/A b 200.0 N/A N/A N/A self xyz2rgb N/A N/A np array N/A X Y Z N/A Lab2Msh N/A N/A self Lab N/A N/A N/A 
        Conversion of CIELAB to Msh
         N/A N/A L a b N/A N/A Lab tolist N/A M N/A N/A np sqrt N/A N/A np sum N/A N/A np power Lab 2 N/A s N/A N/A np arccos N/A L M N/A h N/A N/A np arctan2 b a N/A N/A N/A np array N/A M s h N/A Msh2Lab N/A N/A self Msh N/A N/A N/A 
        Conversion of Msh to CIELAB
         N/A N/A M s h N/A N/A Msh tolist N/A L N/A M N/A N/A np cos s N/A a N/A N/A M N/A N/A np sin s N/A N/A np cos h N/A b N/A N/A M N/A N/A np sin s N/A N/A np sin h N/A N/A N/A np array N/A L a b N/A rgb2Msh N/A N/A self RGB N/A N/A N/A  Direct conversion of RGB to Msh.  N/A N/A N/A self Lab2Msh N/A N/A self rgb2Lab RGB N/A Msh2rgb N/A N/A self Msh N/A N/A N/A  Direct conversion of Msh to RGB.  N/A N/A N/A self Lab2rgb N/A N/A self Msh2Lab Msh N/A adjustHue N/A N/A self MshSat Munsat N/A N/A N/A 
        Function to provide an adjusted hue when interpolating to an
        unsaturated color in Msh space.
         N/A N/A Msat ssat hsat N/A N/A MshSat tolist N/A N/A Msat Munsat N/A N/A hsat N/A N/A hSpin N/A N/A ssat N/A N/A np sqrt N/A N/A Munsat 2 N/A Msat 2 N/A Msat N/A N/A np sin ssat N/A N/A hsat N/A N/A N/A np pi 3 N/A N/A N/A hsat hSpin N/A N/A N/A hsat hSpin N/A interpolateColor N/A N/A self RGB1 RGB2 interp N/A N/A N/A 
        Interpolation algorithm to automatically create continuous diverging
        color maps.
         N/A Msh1 N/A N/A self rgb2Msh RGB1 N/A N/A M1 s1 h1 N/A N/A Msh1 tolist N/A Msh2 N/A N/A self rgb2Msh RGB2 N/A N/A M2 s2 h2 N/A N/A Msh2 tolist N/A N/A N/A s1 0.05 N/A s2 0.05 N/A N/A N/A np abs N/A h1 h2 N/A N/A np pi 3.0 N/A N/A Mmid N/A max N/A M1 M2 88.0 N/A N/A interp 0.5 N/A N/A M2 Mmid N/A s2 0.0 N/A h2 0.0 N/A interp N/A 2 interp N/A N/A M1 Mmid N/A s1 0.0 N/A h1 0.0 N/A interp N/A N/A 2 interp 1.0 N/A N/A N/A s1 0.05 N/A s2 0.05 N/A N/A h1 N/A N/A self adjustHue N/A N/A np array N/A M2 s2 h2 M1 N/A N/A N/A N/A s2 0.05 N/A s1 0.05 N/A N/A h2 N/A N/A self adjustHue N/A N/A np array N/A M1 s1 h1 M2 N/A MshMid N/A N/A N/A 1 interp N/A N/A np array N/A M1 s1 h1 N/A interp N/A N/A np array N/A M2 s2 h2 N/A N/A N/A self Msh2rgb MshMid N/A generateColorMap N/A N/A self RGB1 RGB2 divide N/A N/A N/A 
        Generate the complete diverging color map using the Moreland-technique
        from RGB1 to RGB2, placing "white" in the middle. The number of points
        given by "numPoints" controls the resolution of the colormap. The
        optional parameter "divide" gives the possibility to scale the whole
        colormap, for example to have float values from 0 to 1.
         N/A scalars N/A N/A np linspace 0.0 1.0 N/A self numColors N/A RGBs N/A N/A np zeros N/A N/A self numColors 3 N/A N/A i s N/A enumerate scalars N/A N/A N/A RGBs N/A N/A i N/A N/A N/A self interpolateColor RGB1 RGB2 s N/A N/A RGBs divide N/A generateColorMapLab N/A N/A self RGB1 RGB2 divide N/A N/A N/A 
        Generate the complete diverging color map using a transition from
        Lab1 to Lab2, transitioning true RGB-white. The number of points
        given by "numPoints" controls the resolution of the colormap. The
        optional parameter "divide" gives the possibility to scale the whole
        colormap, for example to have float values from 0 to 1.
         N/A Lab1 N/A N/A self rgb2Lab RGB1 N/A Lab2 N/A N/A self rgb2Lab RGB2 N/A LabWhite N/A N/A np array N/A 100.0 0.0 0.0 N/A Lab N/A N/A np zeros N/A N/A self numColors 3 N/A RGBs N/A N/A np zeros N/A N/A self numColors 3 N/A N2 N/A N/A np floor N/A N/A self numColors 2.0 N/A i N/A range 3 N/A N/A N/A Lab N/A N/A 0 N/A N2 1 N/A i N/A N/A np linspace N/A Lab1 N/A i N/A LabWhite N/A i N/A N2 1 N/A N/A Lab N/A N/A N2 N/A i N/A N/A np linspace N/A LabWhite N/A i N/A Lab2 N/A i N/A N2 1 N/A N/A i l N/A enumerate Lab N/A N/A N/A RGBs N/A N/A i N/A N/A N/A self Lab2rgb l N/A N/A RGBs divide N/A N/A diverge_map N/A N/A RGB1 RGB2 numColors N/A N/A N/A np array N/A 59 76 192 N/A N/A np array N/A 180 4 38 101 N/A N/A colormap N/A ColorMapCreator RGB1 RGB2 numColors numColors N/A N/A colormap colorMap N/A N/A np clip N/A colormap colorMap 0 1 N/A cdict N/A red green blue N/A N/A N/A N/A inds N/A N/A np linspace 0.0 1.0 numColors N/A N/A ii ind N/A enumerate inds N/A N/A N/A N/A N/A cdict N/A red append N/A ind N/A N/A colormap colorMap N/A N/A ii 0 N/A N/A colormap colorMap N/A N/A ii 0 N/A N/A N/A N/A cdict N/A green append N/A ind N/A N/A colormap colorMap N/A N/A ii 1 N/A N/A colormap colorMap N/A N/A ii 1 N/A N/A N/A N/A cdict N/A blue append N/A ind N/A N/A colormap colorMap N/A N/A ii 2 N/A N/A colormap colorMap N/A N/A ii 2 matplotlib.colors LinearSegmentedColormap N/A mycmap N/A LinearSegmentedColormap BlueRed1 cdict N/A mycmap N/A