Skip to content
Snippets Groups Projects
Commit 9a9f3972 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Call self rather than parent class

parent 9daf5193
No related merge requests found
......@@ -28,12 +28,9 @@ class MplFigureCanvas(FigureCanvas):
self.setParent(parent)
# Set size policy to be able to expanding and resizable with frame
FigureCanvas.setSizePolicy(self, QSizePolicy.Expanding,
QSizePolicy.Expanding)
FigureCanvas.updateGeometry(self)
return
self.setSizePolicy(QSizePolicy.Expanding,
QSizePolicy.Expanding)
self.updateGeometry()
def plot(self, x, y):
""" Plot a set of data
......@@ -45,8 +42,6 @@ class MplFigureCanvas(FigureCanvas):
self.y = y
self.axes.plot(self.x, self.y)
return
def getPlot(self):
""" return figure's axes to expose the matplotlib figure to PyQt client
"""
......
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