MCPcopy Create free account
hub / github.com/numpy/numpy / init_matplotlib

Function init_matplotlib

tools/refguide_check.py:1098–1109  ·  view source on GitHub ↗

Check feasibility of matplotlib initialization.

()

Source from the content-addressed store, hash-verified

1096
1097
1098def 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
1112def main(argv):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected