Skip to content

Commit

Permalink
vertical lines
Browse files Browse the repository at this point in the history
  • Loading branch information
teopb committed Aug 4, 2023
1 parent e9df05f commit 7bc1822
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MPAS_true_failure_testing/post_ect_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def main(argv):
plt.xscale("symlog")
plt.plot(perturbations, avg_pca_fails/PCA_dims)
plt.xticks(perturbations)
plt.axvline(x=0, color='r', label='axvline - full height')
plt.title(f"MPAS UF-ECT PCA Fails vs\n {var_name} Perturbation")
plt.ylabel("PCA Fail Percent")
plt.xlabel("Perturbation Factor")
Expand All @@ -123,6 +124,7 @@ def main(argv):
plt.xscale("symlog")
plt.plot(test_vals, avg_pca_fails/PCA_dims)
plt.xticks(test_vals)
plt.axvline(x=default_var_value, color='r', label='axvline - full height')
plt.title(f"MPAS UF-ECT PCA Fails vs\n {var_name} Value")
plt.ylabel("PCA Fail Percent")
plt.xlabel(f"{var_name}")
Expand All @@ -133,6 +135,7 @@ def main(argv):
plt.xscale("linear")
plt.plot(test_vals, avg_pca_fails/PCA_dims)
plt.xticks(test_vals)
plt.axvline(x=default_var_value, color='r', label='axvline - full height')
plt.title(f"MPAS UF-ECT PCA Fails vs\n {var_name} Value")
plt.ylabel("PCA Fail Percent")
plt.xlabel(f"{var_name}")
Expand All @@ -143,6 +146,7 @@ def main(argv):
plt.xscale("symlog")
plt.plot(perturbations, avg_eet_fails)
plt.xticks(perturbations)
plt.axvline(x=0, color='r', label='axvline - full height')
plt.title(f"MPAS UF-ECT EET Rate vs\n {var_name} Perturbation")
plt.ylabel("EET Fail Percent")
plt.xlabel(f"Perturbation Factor")
Expand All @@ -153,6 +157,7 @@ def main(argv):
plt.xscale("symlog")
plt.plot(test_vals, avg_eet_fails)
plt.xticks(test_vals)
plt.axvline(x=default_var_value, color='r', label='axvline - full height')
plt.title(f"MPAS UF-ECT EET Rate vs\n {var_name} Value")
plt.ylabel("EET Fail Percent")
plt.xlabel(f"{var_name}")
Expand All @@ -163,6 +168,7 @@ def main(argv):
plt.xscale("linear")
plt.plot(test_vals, avg_eet_fails)
plt.xticks(test_vals)
plt.axvline(x=default_var_value, color='r', label='axvline - full height')
plt.title(f"MPAS UF-ECT EET Rate vs\n {var_name} Value")
plt.ylabel("EET Fail Percent")
plt.xlabel(f"{var_name}")
Expand Down

0 comments on commit 7bc1822

Please sign in to comment.