PerceptualColormap.set_gamma

PerceptualColormap.set_gamma(gamma=None, gamma1=None, gamma2=None)[source]

Set the gamma value(s) for the luminance and saturation transitions.

Parameters
  • gamma (float, optional) – Set gamma1 and gamma2 to this identical value.

  • gamma1 (float, optional) – If greater than 1, make low saturation colors more prominent. If less than 1, make high saturation colors more prominent. Similar to the HCLWizard option.

  • gamma2 (float, optional) – If greater than 1, make high luminance colors more prominent. If less than 1, make low luminance colors more prominent. Similar to the HCLWizard option.