AlloViz.AlloViz.Elements.Edges._get_colors¶
- Edges._get_colors(col, cmap)¶
Retrieve the colormapped data
Scale the data passed as a
pandas.Seriesusingmatplotlib.colors.TwoSlopeNorm, centered in 0 if there are negative values or in the mean, and apply the passed colormap.- Parameters:
- col
pandas.Series Whole data of the element-metric of which a subset is going to be represented.
- cmap
matplotlib.colors.LinearSegmentedColormap Used colormap function.
- col