freq_axes.autoscale(tight=True)
xmin,xmax = freq_axes.get_xbound()
ymin,ymax = freq_axes.get_ybound()
-
+
# highlight the region we're fitting
- freq_axes.axvspan(
- config['minimum-fit-frequency'],
- config['maximum-fit-frequency'],
- facecolor='g', alpha=0.1, zorder=-2)
+ if config:
+ freq_axes.axvspan(
+ config['minimum-fit-frequency'],
+ config['maximum-fit-frequency'],
+ facecolor='g', alpha=0.1, zorder=-2)
if A is not None:
fitdata = breit_wigner(freq_axis, A, B, C, D)