Skip to content

Commit

Permalink
updated script with example convergence plot
Browse files Browse the repository at this point in the history
  • Loading branch information
JCAurre committed Dec 6, 2024
1 parent 93e2d43 commit 48cc9c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 1 addition & 9 deletions Examples/ScalarFieldBH/grtresna_parameters/plot_restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@
label2 = r"$N^3=64^3$"

# Make the plot
# ax1.plot(x_HR, np.log10(abs(Ham_HR)),c="lime", label=label1)
# ax1.plot(x_LR, np.log10(abs(Ham_LR)),c="r", label=label2)
# ax1.plot(x_LR, np.log10(abs(Ham_LR/factor)),c="k",ls="--", label="2nd order")

# ax2.plot(x_HR, np.log10((Mom_HR)),c="lime")
# ax2.plot(x_LR, np.log10((Mom_LR)),c="r")
# ax2.plot(x_LR, np.log10((Mom_LR/factor)),c="k",ls="--")

ax1.plot(x_HR, abs(Ham_HR),c="lime", label=label1)
ax1.plot(x_LR, abs(Ham_LR),c="r", label=label2)
ax1.plot(x_LR, abs(Ham_LR/factor),c="k",ls="--", label="2nd order")
Expand All @@ -63,5 +55,5 @@

ax1.legend(loc="best")

plt.savefig('HamMom_lineout.png',dpi=256, bbox_inches='tight')
plt.savefig('constraint_lineout.png',dpi=256, bbox_inches='tight')
plt.close()

0 comments on commit 48cc9c3

Please sign in to comment.