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
- 1
Chris Wyman, Peter-Pike Sloan, Peter Shirley. “Simple Analytic Approximations to the CIE XYZ Color Matching Functions” Journal of Computer Graphics Techniques (2013) 2, 1-11.
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))