metaseq.colormap_adjust.cmap_center_adjust

metaseq.colormap_adjust.cmap_center_adjust(cmap, center_ratio)[source]

Returns a new colormap based on the one given but adjusted so that the old center point higher (>0.5) or lower (<0.5)

Parameters:
  • cmap – colormap instance (e.g., cm.jet)
  • center_ratio