Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
fe7fc3e1
Commit
fe7fc3e1
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm hard-coding of backend Agg
parent
a76748db
No related branches found
No related tags found
1 merge request
!1200
rm hard-coding of backend Agg
Pipeline
#83770
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Wrap/Python/ba_plot.py
+1
-3
1 addition, 3 deletions
Wrap/Python/ba_plot.py
with
1 addition
and
3 deletions
Wrap/Python/ba_plot.py
+
1
−
3
View file @
fe7fc3e1
...
...
@@ -14,15 +14,13 @@
import
math
,
os
,
pathlib
,
sys
import
bornagain
as
ba
try
:
# workaround for build servers
try
:
import
numpy
as
np
import
matplotlib
as
mpl
mpl
.
use
(
'
Agg
'
)
# prevent occasional failures, https://stackoverflow.com/a/71511579/1017348
from
matplotlib
import
rc
from
matplotlib
import
pyplot
as
plt
from
matplotlib
import
gridspec
,
colors
from
mpl_toolkits.axes_grid1
import
make_axes_locatable
,
axes_size
except
Exception
as
e
:
print
(
f
"
Import failure in ba_plot.py:
{
e
}
"
)
...
...
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