ArraySolution plot of field detector gives labels with the same name
The following script produces a plot with labels with the same name. I'm not sure exactly where the labels are getting set, but they should probably be marked with the mode they represent.
import finesse
model = finesse.Model()
model.parse(
"""
l laser P=10
s sltoPMC laser.p1 PMC.p1 L=1
bs PMC R=1 T=0 alpha=0.1
s sPMCtoSM1 PMC.p2 SM1.p1 L=0.637
bs SM1 R=1 T=0 alpha=0.1 Rc=2.0
s sSM1toSM2 SM1.p2 SM2.p1 L=11.4
bs SM2 R=1 T=0 alpha=0.1 Rc=24.0
s sSM2toSM3 SM2.p2 SM3.p1 L=11.5
bs SM3 R=1 T=0 alpha=45
s sSM3toSM4 SM3.p2 SM4.p1 L=0.5
bs SM4 R=1 T=0 alpha=45
s sSM4toBS SM4.p2 BS.p1 L=0.5
bs BS T=0.5 L=1.5e-5 alpha=45
s sBStoITMX BS.p2 ITMXAR.p1 L=0.525
m ITMXAR R=0.0 L=0.0 Rc=-1.776
s sITMXARtoITMXHR ITMXAR.p2 ITMXHR.p1 L=0.02446 nr=1.449631
m ITMXHR T=0.00822 L=1.5e-05 phi=90.0 Rc=-5.7
s sXarm ITMXHR.p2 ETMX.p1 L=11.3673
m ETMX T=1.5e-05 L=0.0 phi=90.01218045112782 Rc=5.7
s sBStoITMY BS.p3 ITMYAR.p1 L=0.475
m ITMYAR R=0.0 L=0.0 Rc=-1.776
s sITMYARtoITMYHR ITMYAR.p2 ITMYHR.p1 L=0.02446 nr=1.449631
m ITMYHR T=0.00822 L=1.5e-05 Rc=-5.7
s sYarm ITMYHR.p2 ETMY.p1 L=11.3673
m ETMY T=1.5e-05 L=0.0 phi=-0.012180451127819547 Rc=5.7
cav cavXARM ITMXHR.p2
cav cavYARM ITMYHR.p2
fd EX ETMX.p1.i laser.f
fd EY ETMY.p1.i laser.f
xaxis(ETMY.phi, lin, -10, 190, 500, name="scan_y")
modes(maxtem=3)
"""
)
solution = model.run()
solution.plot()
The plot is also by default pretty weirdly laid out, at least for me:
Adding a finesse.configure(plotting=True)
gives me: