M2_focus_plot

laserbeamsize.m2_display.M2_focus_plot(w0, lambda0, f, z0, M2=1)[source]

Plot a beam from its waist through a lens to its focus.

After calling this, use plt.show() to display the plot.

The lens is at z=0 with respect to the beam waist. All distances to the left of the lens are negative and those to the right are positive.

The beam has a waist at z0. If the beam waist is at the front focal plane of the lens then z0=-f.

Parameters:
  • w0 – beam radius at waist [m]

  • lambda0 – wavelength of beam [m]

  • f – focal length of lens [m]

  • z0 – location of beam waist [m]

  • M2 – beam propagation factor [-]

Returns:

nothing.