diff --git a/src/Mod/Plot/Plot.py b/src/Mod/Plot/Plot.py index 5b0070b027..73848a8c25 100644 --- a/src/Mod/Plot/Plot.py +++ b/src/Mod/Plot/Plot.py @@ -1,7 +1,6 @@ #*************************************************************************** #* * -#* Copyright (c) 2011, 2012 * -#* Jose Luis Cercos Pita * +#* Copyright (c) 2011, 2012 Jose Luis Cercos Pita * #* * #* This program is free software; you can redistribute it and/or modify * #* it under the terms of the GNU Lesser General Public License (LGPL) * @@ -31,7 +30,7 @@ import sys try: import matplotlib matplotlib.use('Qt5Agg') - + # Force matplotlib to use PySide backend by temporarily unloading PyQt if 'PyQt5.QtCore' in sys.modules: del sys.modules['PyQt5.QtCore'] @@ -85,6 +84,7 @@ def getPlot(): return i return None + def closePlot(): """ closePlot(): Close the active plot window. """ # Get active tab @@ -98,7 +98,8 @@ def closePlot(): for i in sub.children(): if i.metaObject().className() == "Plot": sub.close() - + + def figure(winTitle="plot"): """Create a new plot subwindow/tab.