From 03479dd247baf9ea4baf55d03222d586a7094d3c Mon Sep 17 00:00:00 2001 From: Roger Kalt Date: Thu, 27 Oct 2016 08:47:54 +0200 Subject: [PATCH] Script execution --- script/jitter_scan.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/script/jitter_scan.py b/script/jitter_scan.py index 308ca63..5e9477b 100644 --- a/script/jitter_scan.py +++ b/script/jitter_scan.py @@ -118,12 +118,18 @@ amplt_step = 0.049999 * amplt_sat # adjust plot ranges for the color bar to be always the same def after(rec): if rec.index==1: - for p in get_plots("Jitter Scan"): - if i % 2 == 0: - p.setScale(0.0, a_lim) - else : - p.setScale(0.0, p_lim) - i += 1 + (p1,p2,p3,p4,p5,p6,p7,p8,p9,p10) = get_plots("Jitter Scan") + p1.setScale(0.0, a_lim) + p3.setScale(0.0, a_lim) + p5.setScale(0.0, a_lim) + p7.setScale(0.0, a_lim) + p9.setScale(0.0, a_lim) + + p2.setScale(0.0, p_lim) + p4.setScale(0.0, p_lim) + p6.setScale(0.0, p_lim) + p8.setScale(0.0, p_lim) + p10.setScale(0.0, p_lim) scan_result = ascan((cv_rf_amplt, cv_rf_phase), (mv_ref_jit_amplt,mv_ref_jit_phase,mv_iqm_jit_amplt,mv_iqm_jit_phase,mv_pre_jit_amplt,mv_pre_jit_phase,mv_kly_jit_amplt,mv_kly_jit_phase,mv_vsum_jit_amplt,mv_vsum_jit_phase), ( amplt_m10, -170.0), (amplt_sat, 180.0), (amplt_step, 10.0) , latency=latency, title="Jitter Scan", after_read=after, zigzag=False)