plot_gram

lenstest.foucault.plot_gram(D, RoC, x_offset, z_offset, conic=0, phi=0, A=0, on_grid=False)[source]

Plot the Foucault knife edge image.

The idea is to graph both the beam on the knife edge and the expected projection on a screen located at the radius-of-curvature away from the focus. This allows rapid visualization or roughly how much of the knife edge interacts with the screen.

The beam size is limited by the diffraction focus limit of the beam (assuming a 1000nm wavelength).

Parameters:
  • D – diameter of mirror [mm]

  • RoC – radius of curvature of mirror [mm]

  • x_offset – transverse knife edge offset from optical axis [mm]

  • z_offset – axial knife edge offset from paraxial focus [mm]

  • conic – conic or Schwartzchild constant [-]

  • phi – CCW rotation of Ronchi ruling from vertical [radians]

  • init – set to False to allow updating plots

  • on_grid – if False generate points on a grid

  • invert – set to True to invert ruling

Returns:

fig – matplotlib Figure object representing the plot ax: matplotlib Axes object representing the plot