Note
Go to the end to download the full example code
Laguerre-Gauss 2-3 Mode Detector#
This example demonstrates the initialization and visualization of HG01 Mode detector using PyMieSim.
Importing the package: PyMieSim
from PyMieSim.single.detector import CoherentMode
Initializing the detector
detector = CoherentMode(
mode_number="LG23", # Specifying LP23 mode
sampling=900, # Number of sampling points
NA=0.4, # Numerical Aperture
gamma_offset=0, # Gamma offset
phi_offset=40, # Phi offset in degrees
)
Plotting the detector
figure = detector.plot()
Customizing the plot appearance
figure.background_color = 'black' # Setting the background color to black
figure.unit_size = (1200, 1200) # Adjusting the size of the plot
Displaying the plot
_ = figure.show()
Total running time of the script: (0 minutes 1.887 seconds)