metaseq.colormap_adjust.cmap_powerlaw_adjust

metaseq.colormap_adjust.cmap_powerlaw_adjust(cmap, a)[source]

Returns a new colormap based on the one given but adjusted via power-law, newcmap = oldcmap**a.

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