Check feasibility of matplotlib initialization.
()
| 1096 | |
| 1097 | |
| 1098 | def init_matplotlib(): |
| 1099 | """ |
| 1100 | Check feasibility of matplotlib initialization. |
| 1101 | """ |
| 1102 | global HAVE_MATPLOTLIB |
| 1103 | |
| 1104 | try: |
| 1105 | import matplotlib |
| 1106 | matplotlib.use('Agg') |
| 1107 | HAVE_MATPLOTLIB = True |
| 1108 | except ImportError: |
| 1109 | HAVE_MATPLOTLIB = False |
| 1110 | |
| 1111 | |
| 1112 | def main(argv): |