Use tight autoscalling for analyze plots.
authorW. Trevor King <wking@tremily.us>
Fri, 20 Apr 2012 17:06:54 +0000 (13:06 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 20 Apr 2012 17:06:54 +0000 (13:06 -0400)
calibcant/analyze.py

index 67d6908418321369350094e39bf225af04d10b29..0fa917b6d205d69310da31fd56b468a26c07cc3f 100644 (file)
@@ -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)')