correct error plot
This commit is contained in:
parent
d265449d75
commit
3d8dea561e
@ -9,18 +9,19 @@ import time
|
||||
|
||||
|
||||
def plot_errors(list_errors):
|
||||
names = ["error_bf", "error_vs", "error_sc", "error_f_inf",
|
||||
"error_f_inf_slope", "error_f_zero", "error_f_zero_s", "f_zero_curve"]
|
||||
names = ["error_bf", "error_vs", "error_sc", "error_cv", "error_bursty",
|
||||
"error_f_inf", "error_f_inf_s", "error_f_zero", "error_f_zero_s_straight", "error_f0_curve"]
|
||||
data = np.array(list_errors)
|
||||
|
||||
fig, axes = plt.subplots(2, 4, figsize=(10, 8))
|
||||
fig, axes = plt.subplots(2, 5, figsize=(10, 8))
|
||||
|
||||
for i in range(8):
|
||||
col = i % 4
|
||||
row = int(i/4.0)
|
||||
for i in range(10):
|
||||
col = i % 5
|
||||
row = int(i/5.0)
|
||||
|
||||
axes[row, col].hist(data[:, i])
|
||||
axes[row, col].set_title(names[i])
|
||||
axes[row, col].set_yscale('log')
|
||||
|
||||
plt.savefig("figures/error_distributions/error_distribution_{}.png".format(time.strftime("%H:%M:%S")))
|
||||
plt.close()
|
||||
|
Loading…
Reference in New Issue
Block a user