colour.plotting.plot_single_layer_thin_film#
- colour.plotting.plot_single_layer_thin_film(n: ArrayLike, t: ArrayLike, theta: ArrayLike = 0, shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, polarisation: Literal['S', 'P', 'Both'] | str = 'Both', method: Literal['Reflectance', 'Transmittance', 'Both'] | str = 'Reflectance', **kwargs: Any) Tuple[Figure, Axes][source]#
Plot reflectance and/or transmittance of a single-layer thin film.
- Parameters:
n (ArrayLike) – Complete refractive index stack \(n_j\) for single-layer film. Shape: (3,) or (3, wavelengths_count). The array should contain [n_incident, n_film, n_substrate].
t (ArrayLike) – Thickness \(t\) of the film in nanometers.
theta (ArrayLike) – Incident angle \(\theta\) in degrees. Default is 0 (normal incidence).
shape (SpectralShape) – Spectral shape for wavelength sampling.
polarisation (Literal['S', 'P', 'Both'] | str) – Polarisation to plot: ‘S’, ‘P’, or ‘Both’ (case-insensitive).
method (Literal['Reflectance', 'Transmittance', 'Both'] | str) – Optical property to plot: ‘Reflectance’, ‘Transmittance’, or ‘Both’ (case-insensitive). Default is ‘Reflectance’.
kwargs (Any) – {
colour.plotting.artist(),colour.plotting.plot_multi_layer_thin_film(),colour.plotting.render()}, See the documentation of the previously listed definitions.
- Returns:
Current figure and axes.
- Return type:
Examples
>>> plot_single_layer_thin_film([1.0, 1.46, 1.5], 100) (<Figure size ... with 1 Axes>, <...Axes...>)