Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
9a9f3972
Commit
9a9f3972
authored
6 years ago
by
Peterson, Peter
Browse files
Options
Downloads
Patches
Plain Diff
Call self rather than parent class
parent
9daf5193
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/FilterEvents/MplFigureCanvas.py
+3
-8
3 additions, 8 deletions
scripts/FilterEvents/MplFigureCanvas.py
with
3 additions
and
8 deletions
scripts/FilterEvents/MplFigureCanvas.py
+
3
−
8
View file @
9a9f3972
...
...
@@ -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
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment