Skip to content
Snippets Groups Projects
Commit 6a7a472e authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

Merge branch 'fix/1d3d-embedded-convergence-test' into 'master'

[test][fixup][embedded][1d3d] Do not create plot before importing matplotlib

See merge request !2346

(cherry picked from commit 8f3601ab)

b557b23f [test][fixup][embedded][1d3d] Do not create plot before importing matplotlib
parent b1d7f739
No related branches found
No related tags found
3 merge requests!2449WIP: python script to extract modules,!2366remove spurious semicolon in cornerpoint parameter file,!2347Merge branch 'fix/1d3d-embedded-convergence-test' into 'master'
...@@ -59,8 +59,6 @@ table1 = [["", "", "", "", "", "", ""] for i in range(len(cells)+1)] ...@@ -59,8 +59,6 @@ table1 = [["", "", "", "", "", "", ""] for i in range(len(cells)+1)]
table2 = [["", "", "", "", "", "", ""] for i in range(len(cells)+1)] table2 = [["", "", "", "", "", "", ""] for i in range(len(cells)+1)]
table3 = [["", "", "", "", "", "", ""] for i in range(len(cells)+1)] table3 = [["", "", "", "", "", "", ""] for i in range(len(cells)+1)]
dpi = 300.0
fig, axes = plt.subplots(1, 3, dpi=dpi, figsize=(8, 4))
for exec, result in res.items(): for exec, result in res.items():
p3d = [] p3d = []
p1d = [] p1d = []
...@@ -140,10 +138,14 @@ for exec, result in res.items(): ...@@ -140,10 +138,14 @@ for exec, result in res.items():
try: try:
import matplotlib import matplotlib
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
plt.style.use('ggplot') plt.style.use('ggplot')
font = {'family': 'sans-serif', 'weight': 'normal', 'size': 8} font = {'family': 'sans-serif', 'weight': 'normal', 'size': 8}
matplotlib.rc('font', **font) matplotlib.rc('font', **font)
dpi = 300.0
fig, axes = plt.subplots(1, 3, dpi=dpi, figsize=(8, 4))
x = np.linspace(np.min(hR), np.max(hR), 10) x = np.linspace(np.min(hR), np.max(hR), 10)
axes[0].plot(x, np.power(x*radius*0.4, 1.5), "--k", label=r"$\Delta$ 1.5") axes[0].plot(x, np.power(x*radius*0.4, 1.5), "--k", label=r"$\Delta$ 1.5")
axes[0].plot(x, np.power(x*radius*0.3, 2), "-.k", label=r"$\Delta$ 2") axes[0].plot(x, np.power(x*radius*0.3, 2), "-.k", label=r"$\Delta$ 2")
......
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