Add some string utils; rework Benchmark

This commit is contained in:
Jean-Sébastien
2021-12-07 19:02:35 +01:00
parent d922a0dae1
commit 7207370426
4 changed files with 42 additions and 28 deletions
+2 -4
View File
@@ -1,11 +1,9 @@
#!/usr/bin/python
"""
Plots benchmark files produced from Benchmark_RAW_File.
Usage: python plot_benchmarks.py [benchmark file name].
Example: python plot_benchmarks.py LiebLin_Rho_Rho_c_4_L_64_N_64_64_0__iK_32.raw_bmk
Example: python plot_benchmarks.py LiebLin_Rho_Rho_c_4_L_64_N_64_64_0__iK_32_raw.bmk
"""
import matplotlib.pyplot as plt
@@ -18,7 +16,7 @@ index, srcont = np.loadtxt(filename, usecols=(0,1), unpack=True)
index_srt, srcont_srt = np.loadtxt(filename + '_srt', usecols=(0, 1), unpack=True)
plt.semilogy(index, srcont, '.', markersize=1, label='Realized order')
plt.semilogy(index, srcont_srt, '.', markersize=1, label='Ideal order') # careful: index, not index_srt
plt.semilogy(index, srcont_srt, '.', markersize=1, label='Ideal order') # careful: index, not index_srt
plt.xlabel('Order')
plt.ylabel('ln(ME)')