Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot: Expose src/Mod/Plot strings to translation #5042

Merged
merged 2 commits into from
Jan 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Mod/Plot/Plot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#***************************************************************************
#* *
#* 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 +29,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 +83,7 @@ def getPlot():
return i
return None


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