From b92d073faebf061ab467c18ae52f0f9495f8692a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 20 Apr 2012 13:06:54 -0400 Subject: [PATCH] Use tight autoscalling for analyze plots. --- calibcant/analyze.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calibcant/analyze.py b/calibcant/analyze.py index 67d6908..0fa917b 100644 --- a/calibcant/analyze.py +++ b/calibcant/analyze.py @@ -174,10 +174,13 @@ def plot(bumps, temperatures, vibrations): timestamp = _time.strftime('%H%M%S') bump_axes.set_title('cantilever calibration %s' % timestamp) + bump_axes.autoscale(tight=True) bump_axes.plot(bumps, 'g.-') bump_axes.set_ylabel('photodiode sensitivity (V/m)') + T_axes.autoscale(tight=True) T_axes.plot(temperatures, 'r.-') T_axes.set_ylabel('temperature (K)') + vib_axes.autoscale(tight=True) vib_axes.plot(vibrations, 'b.-') vib_axes.set_ylabel('thermal deflection variance (V^2)') -- 2.26.2