colormaps¶
lumicks.pylake.colormaps
- colormaps¶
Pylake custom colormaps.
- red¶
- green¶
- blue¶
- magenta¶
- yellow¶
- cyan¶
- from_wavelength(wavelength)¶
Generate a colormap with a minimum of black and maximum color approximately corresponding to a wavelength in nanometers.
RGB value approximating the given wavelength is calculated using Eq. 4 from [1].
- Parameters:
wavelength (int) – wavelength to approximate maximum color from
References
Examples
# plot the blue image from a kymograph with cyan colormap kymo.plot(channel="blue", cmap=lk.colormaps.cyan) # plot the blue image with the emission maximum of the fluorophore excited at 488 nm kymo.plot(channel="blue", cmap=lk.colormaps.from_wavelength(521))