From: W. Trevor King Date: Thu, 15 Mar 2012 03:31:36 +0000 (-0400) Subject: Oops, add output argument to pypiezo.wiggle._setup_plot(). X-Git-Tag: 0.6~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e46332a666f8c5d114210470e4097d3f6c44987;p=pypiezo.git Oops, add output argument to pypiezo.wiggle._setup_plot(). --- diff --git a/pypiezo/wiggle.py b/pypiezo/wiggle.py index 87658e8..06b47f4 100644 --- a/pypiezo/wiggle.py +++ b/pypiezo/wiggle.py @@ -127,7 +127,7 @@ def _update_datafile(filename, group, config, cycle, data): cwg['time'] = timestamp cwg['raw/{}'.format(config['input'])] = data -def _setup_plot(piezo, config): +def _setup_plot(piezo, config, output): if not _matplotlib: raise _matplotlib_import_error _matplotlib.interactive(True) @@ -136,7 +136,7 @@ def _setup_plot(piezo, config): axes.hold(False) timestamp = _time.strftime('%H%M%S') axes.set_title('wiggle for interference %s' % timestamp) - plot = axes.plot(out, out, 'b.-') + plot = axes.plot(output, output, 'b.-') figure.show() _matplotlib_pyplot.draw() _matplotlib_pyplot.show()