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.
pywafo/wafo/plotbackend.py

24 lines
749 B
P�����

"""
Modify this file if another plotbackend is wanted.
"""
import warnings
14 years ago
verbose = False
if False:
try:
from scitools import easyviz as plotbackend # @UnresolvedImport
14 years ago
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
15 years ago
plotbackend.interactive(True)
14 years ago
if verbose:
print('wafo: plotbackend is set to matplotlib.pyplot')
except ImportError:
warnings.warn('wafo: Unable to load matplotlib.pyplot as plotbackend')
plotbackend = None