From 7375b3aa829651397ed1c44308edd272ec4cb813 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sat, 18 Sep 2021 07:36:31 -0400 Subject: [PATCH] Plot: Expose src/Mod/Plot strings to translation Closes https://github.com/FreeCAD/FreeCAD-translations/issues/60 --- src/Mod/Plot/Plot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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.