Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 22, 2021
1 parent bf9536a commit 0376bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mpl_qt_viz/visualizers/_dockPlot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def saveToPDF(self, filePath: str): # TODO make this callable from a Qt menubar
if not filePath.endswith(".pdf"):
filePath = f"{filePath}.pdf"
with PdfPages(filePath) as pdf:
for k, fig in self.figures:
for k, fig in self.figures.items():
pdf.savefig(fig) # saves the current figure into a pdf page

# We can also set the file's metadata via the PdfPages object:
Expand All @@ -105,6 +105,7 @@ def saveToPDF(self, filePath: str): # TODO make this callable from a Qt menubar
d['CreationDate'] = datetime.datetime.today()
d['ModDate'] = datetime.datetime.today()


class DockablePlot(QDockWidget):
def __init__(self, figure: plt.Figure, title: str, parent: QWidget = None):
super().__init__(title, parent=parent)
Expand Down

0 comments on commit 0376bb2

Please sign in to comment.