You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
749 B
Python

"""
Modify this file if another plotbackend is wanted.
"""
import warnings
verbose = False
if False:
try:
from scitools import easyviz as plotbackend # @UnresolvedImport
if verbose:
print('wafo: plotbackend is set to scitools.easyviz')
except ImportError:
warnings.warn('wafo: Unable to load scitools.easyviz as plotbackend')
plotbackend = None
else:
try:
from matplotlib import pyplot as plotbackend
plotbackend.interactive(True)
if verbose:
print('wafo: plotbackend is set to matplotlib.pyplot')
except ImportError:
warnings.warn('wafo: Unable to load matplotlib.pyplot as plotbackend')
plotbackend = None