From: W. Trevor King Date: Fri, 20 Apr 2012 17:06:54 +0000 (-0400) Subject: Use tight autoscalling for analyze plots. X-Git-Tag: 0.8~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b92d073faebf061ab467c18ae52f0f9495f8692a;p=calibcant.git Use tight autoscalling for analyze plots. --- 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)')