sidpy/viz/plot_utils/cmap.py
def cmap_jet_white_center():
    """
    Generates the jet colormap with a white center

    Returns
    -------
    white_jet : matplotlib.colors.LinearSegmentedColormap object
        color map object that can be used in place of the default colormap
    """
    # For red - central column is like brightness
    # For blue - last column is like brightness
    cdict = {'red': ((0.00, 0.0, 0.0),
                     (0.30, 0.0, 0.0),
                     (0.50, 1.0, 1.0),
                     (0.90, 1.0, 1.0),
                     (1.00, 0.5, 1.0)),
             'green': ((0.00, 0.0, 0.0),
                       (0.10, 0.0, 0.0),
                       (0.42, 1.0, 1.0),
                       (0.58, 1.0, 1.0),
                       (0.90, 0.0, 0.0),
                       (1.00, 0.0, 0.0)),
             'blue': ((0.00, 0.0, 0.5),
                      (0.10, 1.0, 1.0),
                      (0.50, 1.0, 1.0),
                      (0.70, 0.0, 0.0),
                      (1.00, 0.0, 0.0))
             }
    return LinearSegmentedColormap('white_jet', cdict)

    Generates the jet colormap with a white center

    Returns
    -------
    white_jet : matplotlib.colors.LinearSegmentedColormap object
        color map object that can be used in place of the default colormap
    
Generates the jet colormap with a white center
Returns

white_jet : matplotlib.colors.LinearSegmentedColormap object
color map object that can be used in place of the default colormap
Generates the jet colormap with a white center Returns white_jet : matplotlib . colors . LinearSegmentedColormap object color map object that can be used in place of the default colormap
def cmap_jet_white_center():
    cdict = {'red': ((0.00, 0.0, 0.0),
                     (0.30, 0.0, 0.0),
                     (0.50, 1.0, 1.0),
                     (0.90, 1.0, 1.0),
                     (1.00, 0.5, 1.0)),
             'green': ((0.00, 0.0, 0.0),
                       (0.10, 0.0, 0.0),
                       (0.42, 1.0, 1.0),
                       (0.58, 1.0, 1.0),
                       (0.90, 0.0, 0.0),
                       (1.00, 0.0, 0.0)),
             'blue': ((0.00, 0.0, 0.5),
                      (0.10, 1.0, 1.0),
                      (0.50, 1.0, 1.0),
                      (0.70, 0.0, 0.0),
                      (1.00, 0.0, 0.0))
             }
    return LinearSegmentedColormap('white_jet', cdict)
def cmap_jet_white_center ( ) : cdict = { 'red' : ( ( 0.00 , 0.0 , 0.0 ) , ( 0.30 , 0.0 , 0.0 ) , ( 0.50 , 1.0 , 1.0 ) , ( 0.90 , 1.0 , 1.0 ) , ( 1.00 , 0.5 , 1.0 ) ) , 'green' : ( ( 0.00 , 0.0 , 0.0 ) , ( 0.10 , 0.0 , 0.0 ) , ( 0.42 , 1.0 , 1.0 ) , ( 0.58 , 1.0 , 1.0 ) , ( 0.90 , 0.0 , 0.0 ) , ( 1.00 , 0.0 , 0.0 ) ) , 'blue' : ( ( 0.00 , 0.0 , 0.5 ) , ( 0.10 , 1.0 , 1.0 ) , ( 0.50 , 1.0 , 1.0 ) , ( 0.70 , 0.0 , 0.0 ) , ( 1.00 , 0.0 , 0.0 ) ) } return LinearSegmentedColormap ( 'white_jet' , cdict )
Generates the jet colormap with a white center
Returns
Generates the jet colormap with a white center Returns
"""
    Generates the jet colormap with a white center

    Returns
    -------
    white_jet : matplotlib.colors.LinearSegmentedColormap object
        color map object that can be used in place of the default colormap
    """ # For red - central column is like brightness # For blue - last column is like brightness