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