From: W. Trevor King Date: Mon, 26 Mar 2012 21:23:33 +0000 (-0400) Subject: Use tight autoscaling for bump plots. X-Git-Tag: 0.8~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f4486468781da4440702499f73dbf0ea1dc7fc1;p=calibcant.git Use tight autoscaling for bump plots. --- 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)')