Traceback (most recent call last):
File "VoigtFit.py", line 1118, in
main()
File "VoigtFit.py", line 1088, in main
dataset.fit()
File "VoigtFit.py", line 833, in fit
self.plot_fit(rebin=rebin, subsample_profile=rebin)
File "VoigtFit.py", line 846, in plot_fit
subsample_profile=subsample_profile, npad=npad)
File "/Users/keheintz/Desktop/VoigtFit/output.py", line 245, in plot_all_lines
subsample_profile=subsample_profile, npad=npad)
File "/Users/keheintz/Desktop/VoigtFit/output.py", line 487, in plot_single_line
fig.set_tight_layout(True)
UnboundLocalError: local variable 'fig' referenced before assignment
I get the following error using the new version:
Traceback (most recent call last): File "VoigtFit.py", line 1118, in
main()
File "VoigtFit.py", line 1088, in main
dataset.fit()
File "VoigtFit.py", line 833, in fit
self.plot_fit(rebin=rebin, subsample_profile=rebin)
File "VoigtFit.py", line 846, in plot_fit
subsample_profile=subsample_profile, npad=npad)
File "/Users/keheintz/Desktop/VoigtFit/output.py", line 245, in plot_all_lines
subsample_profile=subsample_profile, npad=npad)
File "/Users/keheintz/Desktop/VoigtFit/output.py", line 487, in plot_single_line
fig.set_tight_layout(True)
UnboundLocalError: local variable 'fig' referenced before assignment
Any ideas on how to fix this?