Note
Go to the end to download the full example code
Source Plottings#
This example demonstrates how to visualize the properties of a light source using PyMieSim.
Importing the package: PyMieSim
from PyMieSim.single.source import Gaussian
Defining the source
source = Gaussian(
wavelength=1e-6, # 1000 nm
polarization_value=0, # Linear polarization angle in radians
polarization_type='linear',
optical_power=1, # Arbitrary units
NA=0.3 # Numerical Aperture
)
Plotting the source
figure = source.plot()
Display the plot
_ = figure.show()
Total running time of the script: (0 minutes 2.934 seconds)