AlloViz.AlloViz.Elements.Element._get_colors¶
- Element._get_colors(col, cmap)[source]¶
Retrieve the colormapped data
Scale the data passed as a
pandas.Series
usingmatplotlib.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