diff --git a/script/Alignment/Gun_solenoid_alignment_dv_sim.py b/script/Alignment/Gun_solenoid_alignment_dv_sim.py index 0cbff38..bdc36d4 100644 --- a/script/Alignment/Gun_solenoid_alignment_dv_sim.py +++ b/script/Alignment/Gun_solenoid_alignment_dv_sim.py @@ -56,7 +56,9 @@ r = lscan(I_set, [I_read, bpm_x, bpm_y], I1, I2, dI, 1.0, passes = 2, zigzag = T #caput("SIN-CVME-TIMAST-TMA:LaserDelayControl", 1) # take the result of the scan and do the plots -plot(r.getReadable(2), xdata=r.getReadable(1), title = "Centroid") +centroid_x = r.getReadable(1) +centroid_y = r.getReadable(2) +plot(centroid_y, xdata=centroid_x, title = "Centroid excursion") # save the entry in the logbook msg = str(r)