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
48401568
Commit
48401568
authored
6 years ago
by
Peterson, Peter
Browse files
Options
Downloads
Patches
Plain Diff
Import all backend widgets from matplotlib
parent
926597b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/MPLwidgets.py
+2
-2
2 additions, 2 deletions
scripts/MPLwidgets.py
with
2 additions
and
2 deletions
scripts/MPLwidgets.py
+
2
−
2
View file @
48401568
...
...
@@ -9,8 +9,8 @@ from gui_helper import set_matplotlib_backend
backend
=
set_matplotlib_backend
()
# must be at the top of this file
if
backend
==
'
Qt4Agg
'
:
from
matplotlib.backends.backend_qt4agg
import
FigureCanvasQTAgg
from
matplotlib.backends.backend_qt4agg
import
*
elif
backend
==
'
Qt5Agg
'
:
from
matplotlib.backends.backend_qt5agg
import
FigureCanvasQTAgg
from
matplotlib.backends.backend_qt5agg
import
*
else
:
raise
RuntimeError
(
'
Unrecognized backend {}
'
.
format
(
backend
))
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