xopto.materials.absorption.melanin module

class Jacques[source]

Bases: xopto.materials.absorption.base.Absorption

Absorption coefficient (1/m) of melanin as a function of wavelength of light (m).

material = 'melanin'
plot(wavelength: numpy.ndarray, gamma: float = 0.5, show: bool = True)[source]

Plot the absorption coefficient at the given wavelengths.

Parameters
  • wavelength (np.ndarray) – Wavelengths of light. If None, use the reference values.

  • show (bool) – Show the plot window if True.