diff --git a/script/local.py b/script/local.py index 8ff46c6..6698e2b 100644 --- a/script/local.py +++ b/script/local.py @@ -16,5 +16,13 @@ crlogic_config["additionalBacklash"] = 0.01 crystal.setTrustedMonitor(True) +def setup_brag_plot(auto=True) + if auto: + setup_plotting(range = "auto") + else: + offset = bragg.read() - bragg.readback.read() + setup_plotting(range = [scan_start - offset, scan_stop - offset]) + + #add_device(bragg.getExtEncoder(), True)