@@ -1,13 +1,19 | |||
|
1 |
import |
|
|
2 | import datetime | |
|
1 | import os | |
|
3 | 2 | import sys |
|
3 | import datetime | |
|
4 | import numpy | |
|
4 | 5 | import matplotlib |
|
5 | 6 | |
|
6 | if 'linux' in sys.platform: | |
|
7 | if 'BACKEND' in os.environ: | |
|
8 | matplotlib.use(os.environ['BACKEND']) | |
|
9 | elif 'linux' in sys.platform: | |
|
7 | 10 | matplotlib.use("TkAgg") |
|
8 | ||
|
9 | if 'darwin' in sys.platform: | |
|
10 | matplotlib.use('TKAgg') | |
|
11 | elif 'darwin' in sys.platform: | |
|
12 | matplotlib.use('TkAgg') | |
|
13 | else: | |
|
14 | from schainpy.utils import log | |
|
15 | log.warning('Using default Backend="Agg"', 'INFO') | |
|
16 | matplotlib.use('Agg') | |
|
11 | 17 | # Qt4Agg', 'GTK', 'GTKAgg', 'ps', 'agg', 'cairo', 'MacOSX', 'GTKCairo', 'WXAgg', 'template', 'TkAgg', 'GTK3Cairo', 'GTK3Agg', 'svg', 'WebAgg', 'CocoaAgg', 'emf', 'gdk', 'WX' |
|
12 | 18 | import matplotlib.pyplot |
|
13 | 19 |
General Comments 0
You need to be logged in to leave comments.
Login now