"""Look at the tracking signal around the known barrier-opening time. Loads one tracking DB whose opening time we know (from 2025_07_15_barrier_opening.csv) and plots a few candidate signals against time, with a vertical line at the ground-truth opening: 1. Y position of each detection (raw scatter) 2. Sliding-window Y range (max - min over a window) 3. Sliding-window |y - roi_midline| (mean distance from midline) The hope is one of these has a clean step-change at t = opening_time that's robustly detectable across ROIs. Run: python explore_barrier_signal.py Outputs: figures/barrier_signal__