Closed Nat1405 closed 4 years ago
The following addition (at the top of nifsBaselineCalibration.py) before importing matplotlib seems to let splot work; more testing is needed to see if all the graphical tasks work.
from sys import platform as sys_pf
if sys_pf == 'darwin':
import matplotlib
matplotlib.use("TkAgg")
Seems to be working in a test data reduction with interactive h-line selection in nifsTelluric (commit e5e5a3a813c9). Closing for now.
Graphical IRAF tasks like pyraf.iraf.splot() don't work.
Testing: I inserted the following lines into nifsBaselineCalibration.py to see if splot worked.
This resulted in the following error: