analysis.field_curvature#

Field Curvature Analysis

This module provides a field curvature analysis for optical systems.

Kramer Harrison, 2024

Classes

FieldCurvature(optic[, wavelengths, num_points])

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.

Variables:
  • optic (Optic) – The optic object being analyzed.

  • wavelengths (list) – The wavelengths being analyzed.

  • num_points (int) – The number of points generated for the analysis.

  • data (list) – The generated data for the analysis.

Methods:

view (figsize=(8, 5.5)) – Displays a plot of the field curvature analysis.

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