Skip to content

Commit ef68418

Browse files
committed
fixed matplotlib import error for systems without TkInter installed.
importing matplotlib on systems that do not have TkInter installed gives a ModuleNotFoundError (see matplotlib/matplotlib#9017) This commit works around this issue by setting the 'agg' backend for matplotlib.
1 parent f4e16b9 commit ef68418

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎dynaphopy/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
__version__ = '1.15.4'
22

33
import numpy as np
4+
import matplotlib
5+
matplotlib.use('agg')
46
import matplotlib.pyplot as plt
57

68
import dynaphopy.projection as projection

0 commit comments

Comments
 (0)