Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
lscsoft
bilby
Merge requests
!760
Resolve "Matplotlib deprecation warning"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Matplotlib deprecation warning"
470-matplotlib-deprecation-warning
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Gregory Ashton
requested to merge
470-matplotlib-deprecation-warning
into
master
4 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#470 (closed)
Edited
4 years ago
by
Gregory Ashton
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c9bd9a43
1 commit,
4 years ago
1 file
+
5
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bilby/core/utils.py
+
5
−
1
Options
@@ -15,6 +15,7 @@ from importlib import import_module
import
json
import
warnings
from
distutils.version
import
StrictVersion
import
numpy
as
np
from
scipy.interpolate
import
interp2d
from
scipy.special
import
logsumexp
@@ -965,7 +966,10 @@ else:
for
backend
in
non_gui_backends
:
try
:
logger
.
debug
(
"
Trying backend {}
"
.
format
(
backend
))
matplotlib
.
use
(
backend
,
warn
=
False
)
if
StrictVersion
(
matplotlib
.
__version__
)
>=
StrictVersion
(
"
3.1
"
):
matplotlib
.
use
(
backend
)
else
:
matplotlib
.
use
(
backend
,
warn
=
False
)
plt
.
switch_backend
(
backend
)
break
except
Exception
:
Loading