optiland.analysis.field_curvature
Field Curvature Analysis
This module provides a field curvature analysis for optical systems.
Kramer Harrison, 2024
Classes
|
Represents a class for analyzing field curvature of an optic. |
- class FieldCurvature(optic, wavelengths='all', num_points=128)[source]
Represents a class for analyzing field curvature of an optic.
- Parameters:
optic (Optic) – The optic object to analyze.
wavelengths (str or list, optional) – The wavelengths to analyze. Defaults to ‘all’.
num_points (int, optional) – The number of points to generate for the analysis. Defaults to 128.
- wavelengths
The wavelengths being analyzed.
- Type:
list
- num_points
The number of points generated for the analysis.
- Type:
int
- data
The generated data for the analysis.
- Type:
list
- view(fig_to_plot_on: Figure | None = None, figsize: tuple[float, float] = (8, 5.5), *, show: bool = True) tuple[Figure, Axes][source]
Displays a plot of the field curvature analysis.
- Parameters:
fig_to_plot_on (plt.Figure, optional) – The figure to plot on. If None, a new figure will be created. Defaults to None.
figsize (tuple[float, float], optional) – The size of the figure. Defaults to (8, 5.5).
show (bool) – If True (default), calls plt.show(). Set False for headless use.
- Returns:
The current figure and its axes.
- Return type:
tuple