[[!meta title="PlotPick program"]] [[!meta date="2008-10-01 23:55:03"]] While calibrating my photodiodes, some of my surface bumps went out of the linear-response range. Since I'm not confident in my ability to set boundaries programmatically at the moment, I thought I'd write up a little utility to record clicks on key data points, so I could pick out the “good data”. Enter [[plotpick.py]] the raw-data version of [[clickloc]]. Hope you like it :). I've also written up a simple data generator ([[random-data.py]]), which allows you to try out plotpick:: $ random-data.py -n 200 | plotpick.py [[Matplotlib]] has supported the [`picker` infrastructure][picker] in various guises [since `pickeps` in 2007][e26b7b9], but I only just discovered it. Before version 0.3, `plotpick.py` used a much less elegant cursor implementation based on [cursor_demo.py][]. [[calibcant]], my modern cantilever calibration suite, [repositions the piezo before every bump][reposition], so out-of-range bumps are no longer an issue. [picker]: http://matplotlib.org/users/event_handling.html#object-picking [e26b7b9]: https://github.com/matplotlib/matplotlib/commit/e26b7b9a78785245d734e22a2cd8314dfa783c7c [cursor_demo.py]: http://matplotlib.org/examples/pylab_examples/cursor_demo.html [reposition]: http://git.tremily.us/?p=calibcant.git;a=commit;h=77e8244d80306dcea9ab1422cb45630a92494f85 [[!tag tags/code]] [[!tag tags/linux]] [[!tag tags/programming]] [[!tag tags/python]] [[!tag tags/theory]]