Skip to content
Snippets Groups Projects
Commit 1c4c8116 authored by TUD278427's avatar TUD278427
Browse files

finally able to fix this stupid bug from qtt

parent 5d0ce160
No related branches found
No related tags found
No related merge requests found
......@@ -265,10 +265,6 @@ try:
elif isinstance(fig, int):
fig = plt.figure(fig)
fig.savefig(fname)
elif isinstance(fig, QtWidgets.QWidget):
# generic method
figtemp = fig.plotwin.grab()
figtemp.save(fname)
elif isinstance(fig, QtWidgets.QWidget):
try:
figtemp = QtGui.QPixmap.grabWidget(fig)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment