Skip to content
Snippets Groups Projects
Commit fe7fc3e1 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm hard-coding of backend Agg

parent a76748db
No related branches found
No related tags found
1 merge request!1200rm hard-coding of backend Agg
Pipeline #83770 passed
......@@ -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}")
......
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