This lets you manipulate them in external code to fine tune them to
your particular situation. The default plots are useful, but not
always beautiful. Now you can write a script to generate beautiful
plots for your poster without duplicating code from the plot
functions.
if hasattr(figure, 'show'):
figure.show()
+ return figure
_plot = plot # alternative name for use inside analyze_all()
residual_axes.set_ylabel('Photodiode (Volts)')
if hasattr(figure, 'show'):
figure.show()
+ return plot
_plot = plot # alternative name for use inside fit()
axes2.plot(processed, label='processed')
if hasattr(figure, 'show'):
figure.show()
+ return figure
freq_axes.set_ylabel('PSD')
if hasattr(figure, 'show'):
figure.show()
+ return figure
_plot = plot # alternative name for use inside analyze()