AlloViz

  • AlloViz
  • Network construction methods
  • Tutorials
  • API reference
On this page
  • Element._get_colors()

AlloViz.AlloViz.Elements.Element._get_colors¶

Element._get_colors(col, cmap)[source]¶

Retrieve the colormapped data

Scale the data passed as a pandas.Series using matplotlib.colors.TwoSlopeNorm, centered in 0 if there are negative values or in the mean, and apply the passed colormap.

Parameters:
colpandas.Series

Whole data of the element-metric of which a subset is going to be represented.

cmapmatplotlib.colors.LinearSegmentedColormap

Used colormap function.

© Copyright 2023.

Created using Sphinx 8.1.3.