I know, that the workflow maybe isn't very intuitive and you'll need to workout how you can best work.
Here is a document which reproduces your experimental setup:
\documentclass[margin=5pt, pstricks]{standalone}
\usepackage{pst-optexp}
\begin{document}
\begin{pspicture}(14,3.5)
\psset[optexp]{labeloffset=0.8, labelangle=180}
\pnodes(2,1.5){Start}(12,1.5){End}
\begin{optexp}
\optbox[innerlabel, position=start](Start)(End){Laser}
\lens[lens=-1.5 -1.5 1 0.1, abspos=1, n=2](Start)(End){$D_1$}
\lens[lens=3 3 1.3, abspos=2.5, n=1.7](Start)(End){$C_2$}
\pinhole[abspos=4, phwidth=0.05](Start)(End){$A_3$}
\lens[lens=3 3 1.3, abspos=5.5, n=1.85](Start)(End){$C_4$}
\lens[lens=3 3 1.3, abspos=8.5, n=1.95](Start)(End){$C_5$}
\optbox[innerlabel, position=end](Start)(End){CCD}
\addtopsstyle{Beam}{fillstyle=solid, fillcolor=green!50!white}
\drawwidebeam[beamwidth=0.2]{1-4}
\drawwidebeam[beamwidth=0.1, beamdiv=20]{4-7}
\end{optexp}
\optplate[compname=fourier,
abspos=7, plateheight=1.5,
labelalign=b,
linewidth=0.5\pslinewidth, linestyle=dashed](Start)(End)%
{\begin{tabular}{@{}c@{}}Fourier\\plane\end{tabular}}
\psset{arrows=|*-|*}
\pcline([offset=-1]\oenodeCenter{1})([offset=-1]\oenodeCenter{2})
\ncput*{$f_2$}
\pcline([offset=-1]\oenodeCenter{3})([offset=-1]\oenodeCenter{4})
\ncput*{$f_4$}
\pcline([offset=-1]\oenodeCenter{4})([offset=-1]\oenodeCenter{5})
\ncput*{$f_4$}
\pcline([offset=-1]\oenodeCenter{5})([offset=-1]\oenodeCenter{fourier})
\ncput*{$f_4$}
\pcline([offset=-1]\oenodeCenter{fourier})([offset=-1]\oenodeCenter{6})
\ncput*{$f_5$}
\pcline([offset=-1]\oenodeCenter{6})([offset=-1]\oenodeIn{7})
\ncput*{$f_5$}
\end{pspicture}
\end{document}
In this case my workflow was as follows:
- Define start and end point.
- Position all components from left to right using an absolute position (
abspos
).
- Get the shape of all lenses like you want them to appear.
- Start with a wide beam without divergence.
- Adapt the refractive index
n
for every lens to fit your required beam path.
Yes, point 5 isn't how a real optical setup is choosen, but you want to draw a sketch which doesn't allow you to use the 'real' lens radii and focal distances.
I wrapped all components and beams inside an optexp
environment, so that the beam is drawn below the components. Only the fourier
component, which indicates the Fourier plane, is drawn afterwards because it must be over the beam.
