axes.plot(pos_array, def_array, '.', label=timestamp)
#_pylab.legend(loc='best')
figure.canvas.draw()
- figure.show()
+ if hasattr(figure, 'show'):
+ figure.show()
if not _matplotlib.is_interactive():
_matplotlib_pyplot.show()
for i,name in enumerate(names):
axes.plot(d[:,i], label=name)
figure.canvas.draw()
- figure.show()
+ if hasattr(figure, 'show'):
+ figure.show()
if not _matplotlib.is_interactive():
_matplotlib_pyplot.show()
return input_data
fit_fn(final_pos, params)], '-',label='fit')
#_pylab.legend(loc='best')
figure.canvas.draw()
- figure.show()
+ if hasattr(figure, 'show'):
+ figure.show()
if not _matplotlib.is_interactive():
_matplotlib_pyplot.show()
axes.set_title('wiggle for interference %s' % timestamp)
plot = axes.plot(output, output, 'b.-')
figure.canvas.draw()
- figure.show()
+ if hasattr(figure, 'show'):
+ figure.show()
if not _matplotlib.is_interactive():
_matplotlib_pyplot.show()
return (figure, axes, plot)