jkrogager / VoigtFit

Python code to fit absorption lines semi-interactively
http://voigtfit.readthedocs.io/
MIT License
28 stars 12 forks source link

New trouble with plotting #7

Closed keheintz closed 7 years ago

keheintz commented 7 years ago

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?

jkrogager commented 7 years ago

This has been fixed. Update to the latest version.