diff --git a/seismic/ASDFdatabase/waveform_analytics.py b/seismic/ASDFdatabase/waveform_analytics.py index e6c18ca1..0a76a410 100644 --- a/seismic/ASDFdatabase/waveform_analytics.py +++ b/seismic/ASDFdatabase/waveform_analytics.py @@ -17,6 +17,7 @@ is_windows = sys.platform.startswith('win') is_osx = sys.platform.startswith('darwin') +is_linux = sys.platform.startswith('linux') if(is_windows): # suppress warnings on windows import warnings @@ -51,7 +52,8 @@ import multiprocess from multiprocess import Manager, freeze_support -matplotlib.use('TKAgg') +if(is_windows | is_osx): matplotlib.use('TKAgg') +else: matplotlib.use('Agg') class ProgressTracker(object): def __init__(self, manager: Manager):