Use a Matplotlib gridspec to plot the Fraunhofer pattern of a 2 rectangle aperture.
The used solution is
where
The plotted pattern will be given by
When executed, the Python 3 script Fraunhofer-difraction.py will produce the following output:
The parameters used in this case are: