Fem: [skip ci] set backend of matplotlib to Qt5Agg

This commit is contained in:
wmayer
2021-03-05 21:25:27 +01:00
parent 20c0f14efc
commit f6863bdb77

View File

@@ -30,6 +30,12 @@ __url__ = "https://www.freecadweb.org"
# \ingroup FEM
# \brief task panel for mechanical ResultObjectPython
try:
import matplotlib
matplotlib.use("Qt5Agg")
except Exception:
print("Failed to set matplotlib backend to Qt5Agg")
import matplotlib.pyplot as plt
import numpy as np