Skip to content

Commit

Permalink
Plot: Expose src/Mod/Plot strings to translation
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz committed Oct 21, 2021
1 parent dce129e commit 90eb8fd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Mod/Plot/Plot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#***************************************************************************
#* *
#* Copyright (c) 2011, 2012 *
#* Jose Luis Cercos Pita <jlcercos@gmail.com> *
#* Copyright (c) 2011, 2012 Jose Luis Cercos Pita <jlcercos@gmail.com> *
#* *
#* This program is free software; you can redistribute it and/or modify *
#* it under the terms of the GNU Lesser General Public License (LGPL) *
Expand Down Expand Up @@ -31,7 +30,7 @@
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']
Expand Down Expand Up @@ -85,6 +84,7 @@ def getPlot():
return i
return None


def closePlot():
""" closePlot(): Close the active plot window. """
# Get active tab
Expand All @@ -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.
Expand Down

0 comments on commit 90eb8fd

Please sign in to comment.