From 9f4486468781da4440702499f73dbf0ea1dc7fc1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 26 Mar 2012 17:23:33 -0400 Subject: [PATCH] Use tight autoscaling for bump plots. --- calibcant/bump_analyze.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calibcant/bump_analyze.py b/calibcant/bump_analyze.py index babcb05..d855909 100644 --- a/calibcant/bump_analyze.py +++ b/calibcant/bump_analyze.py @@ -387,6 +387,7 @@ def plot(data, yguess=None, yfit=None): if yfit != None: axes.plot(data['z'], yfit, 'r-', label='fit') + axes.autoscale(tight=True) axes.set_title('bump surface %s' % timestamp) #axes.legend(loc='upper left') axes.set_xlabel('Z piezo (meters)') @@ -395,6 +396,7 @@ def plot(data, yguess=None, yfit=None): # second subplot for residual residual_axes.plot(data['z'], data['deflection'] - yfit, 'r-', label='residual') + residual_axes.autoscale(tight=True) #residual_axes.legend(loc='upper right') residual_axes.set_xlabel('Z piezo (meters)') residual_axes.set_ylabel('Photodiode (Volts)') -- 2.26.2