Skip to content

Commit d59c13e

Browse files
committed
Merge branch 'main' of github.com:AMReX-Astro/papers
2 parents 3a69ef8 + f8ddafb commit d59c13e

6 files changed

+19
-12
lines changed

subch_tols/plots/det_structure/plot_shock_enuc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
fig = plt.figure()
1111
ax = fig.add_subplot(211)
1212

13-
ax.set_yscale("symlog", linthresh=1.e10)
13+
ax.set_yscale("symlog", linthresh=1.e12)
1414

1515
ax.plot(d5[:,0], d5[:,3], label="5 km")
1616
ax.plot(d10[:,0], d10[:,3], label="10 km")

subch_tols/plots/plot_cpu.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222

2323
ax.plot(data[:,1], data[:,2]/8, label=label, color=color, marker=ls, markevery=0.025)
2424

25-
ax.legend(fontsize="small")
25+
ax.legend(fontsize="medium")
2626
ax.set_xlim(0.0, 1.0)
2727

2828
ax.grid(linestyle=":", which="both")
2929

3030
ax.set_xlabel("time (s)")
3131
ax.set_ylabel("node hours")
32-
fig.set_size_inches((8, 8))
32+
fig.set_size_inches((6, 6))
33+
fig.tight_layout()
3334
fig.savefig("subch_cpu.pdf")

subch_tols/plots/plot_subch_intermediate.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def monotonize(arr):
3636
mass = data[:,15] + data[:,16] + data[:,17] + data[:,18] + data[:,19] + data[:,20]
3737
ax.plot(data[:,1], mass, label=label, color=color, marker=ls, markevery=0.025)
3838

39-
ax.legend(fontsize="small")
39+
ax.legend(fontsize="medium")
4040
ax.set_xlim(0.0, 1.0)
4141
ax.set_ylim(1.e-3, 1.0)
4242
ax.set_yscale("log")
@@ -67,5 +67,6 @@ def monotonize(arr):
6767
ax2.set_ylim(0.006, 0.01)
6868

6969

70-
fig.set_size_inches((8, 8))
70+
fig.set_size_inches((6, 6))
71+
fig.tight_layout()
7172
fig.savefig("subch_intermediate.pdf")

subch_tols/plots/plot_subch_ni.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def monotonize(arr):
3535

3636
ax.plot(data[:,1], data[:,23], label=label, color=color, marker=ls, markevery=0.025)
3737

38-
ax.legend(fontsize="small")
38+
ax.legend(fontsize="medium")
3939
ax.set_xlim(0.0, 1.0)
4040
ax.set_ylim(1.e-2, 1.0)
4141
ax.set_yscale("log")
@@ -65,5 +65,6 @@ def monotonize(arr):
6565
ax2.set_ylim(0.0175, 0.04)
6666

6767

68-
fig.set_size_inches((8, 8))
68+
fig.set_size_inches((6, 6))
69+
fig.tight_layout()
6970
fig.savefig("subch_ni56.pdf")

subch_tols/plots/plot_subch_ni_resolution.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def monotonize(arr):
2929

3030
ax.plot(data[:,1], data[:,23], label=label)
3131

32-
ax.legend(fontsize="small")
32+
ax.legend(fontsize="medium")
3333
ax.set_xlim(0.0, 1.0)
3434
ax.set_ylim(1.e-2, 1.0)
3535
ax.set_yscale("log")
@@ -58,5 +58,6 @@ def monotonize(arr):
5858
ax2.set_yscale("log")
5959
ax2.set_ylim(0.0175, 0.04)
6060

61-
fig.set_size_inches((8, 8))
61+
fig.set_size_inches((6, 6))
62+
fig.tight_layout()
6263
fig.savefig("subch_ni56_res.pdf")

subch_tols/plots/plot_subch_temp.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import matplotlib.pyplot as plt
22
import numpy as np
3+
from matplotlib import ticker
34
from mpl_toolkits.axes_grid1.inset_locator import (InsetPosition, inset_axes,
45
mark_inset)
56

@@ -12,7 +13,7 @@
1213
strang_files = [
1314
("subch_strang/grid_diag.out", "Strang-0.2", "C0", "o"),
1415
# ("subch_strang_cfl0.1/grid_diag.out", "Strang CFL=0.1", "C1", "x"),
15-
("subch_strang_noTevolve_fix/grid_diag.out", "Strang, CFL=0.2, no T evolution", "C2", "s"),
16+
# ("subch_strang_noTevolve_fix/grid_diag.out", "Strang, CFL=0.2, no T evolution", "C2", "s"),
1617
("subch_strang_cfl0.05/grid_diag.out", "Strang-0.05", "C0", "+"),
1718
("subch_strang_tol1.e-8/grid_diag.out", "Strang-tol", "C1", "x")]
1819

@@ -34,15 +35,17 @@ def monotonize(arr):
3435

3536
ax.plot(data[:,1], data[:,20], label=label, color=color, marker=ls, markevery=0.025)
3637

37-
ax.legend(fontsize="small")
38+
ax.legend(fontsize="medium")
3839
ax.set_xlim(0.0, 1.0)
3940
#ax.set_ylim(1.e-2, 1.0)
4041
#ax.set_yscale("log")
4142
ax.grid(linestyle=":", which="both")
43+
ax.yaxis.set_major_formatter(ticker.ScalarFormatter(useMathText=True))
4244

4345
ax.set_xlabel("time (s)")
4446
ax.set_ylabel("peak T (K)")
4547

4648

47-
fig.set_size_inches((8, 8))
49+
fig.set_size_inches((6, 6))
50+
fig.tight_layout()
4851
fig.savefig("subch_temp.pdf")

0 commit comments

Comments
 (0)