|
|
|
@ -53,7 +53,7 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
@@ -53,7 +53,7 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
|
|
|
|
|
idx_a = input_file.find('/') |
|
|
|
|
idx_b = input_file[idx_a+1::].find('/') |
|
|
|
|
name_file = input_file[idx_a+1:idx_b+idx_a+1] |
|
|
|
|
inputfile_path = 'results/' + name_file + '/input.yaml' |
|
|
|
|
inputfile_path = 'results_slices_15dB/' + name_file + '/input.yaml' |
|
|
|
|
|
|
|
|
|
with open(inputfile_path) as file: |
|
|
|
|
inputfile = yaml.full_load(file) |
|
|
|
@ -107,9 +107,9 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
@@ -107,9 +107,9 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
|
|
|
|
|
theta = dat['theta'] |
|
|
|
|
P = dat['P_theta'] |
|
|
|
|
|
|
|
|
|
#col = cycle(['C0', 'C1', 'C2', 'C3','C4']) |
|
|
|
|
col = cycle(['orangered', 'dodgerblue', 'limegreen', 'C3','C4']) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
color_list = ['tomato', 'springgreen' , '#2CBDFE'] |
|
|
|
|
col = cycle(color_list) |
|
|
|
|
legends = cycle(labels) |
|
|
|
|
|
|
|
|
|
col_ = next(col) |
|
|
|
@ -132,7 +132,8 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
@@ -132,7 +132,8 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ids_type[i] == 'dirichlet': |
|
|
|
|
axes3.plot(t, curve , '-', color=col_,label= legends_ + '= ' + str(rec_value) + '/' + str(true_values[cur_key]) + '$', linewidth = 5) |
|
|
|
|
#axes3.plot(t, curve , '-', color=col_,label= legends_ + '= ' + str(rec_value) + '/' + str(true_values[cur_key]) + '$', linewidth = 5) |
|
|
|
|
axes3.plot(t, curve , '-', color=col_,label= legends_ + '$', linewidth = 5) |
|
|
|
|
axes3.fill_between(t, std_down, std_up, alpha=0.3, color=col_) |
|
|
|
|
legends_=next(legends) |
|
|
|
|
axes3.plot(t, dash_curve , color=col_,ls='--' , linewidth = 3) |
|
|
|
@ -147,7 +148,8 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
@@ -147,7 +148,8 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
|
|
|
|
|
#plt.savefig('U_' + name_file + '.png') |
|
|
|
|
plt.close(fig3) |
|
|
|
|
else: |
|
|
|
|
axes1.plot(t, curve , '-', color=col_,label= legends_ + '= ' + str(rec_value) + '/' + str(true_values[cur_key]) + '$', linewidth = 4) |
|
|
|
|
#axes1.plot(t, curve , '-', color=col_,label= legends_ + '= ' + str(rec_value) + '/' + str(true_values[cur_key]) + '$', linewidth = 4) |
|
|
|
|
axes1.plot(t, curve , '-', color=col_,label= legends_ + '$', linewidth = 4) |
|
|
|
|
axes1.fill_between(t, std_down, std_up, alpha=0.3, color=col_) |
|
|
|
|
axes1.plot(t, dash_curve , color=col_,ls='--',linewidth = 3) |
|
|
|
|
legends_=next(legends) |
|
|
|
@ -161,8 +163,8 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
@@ -161,8 +163,8 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
|
|
|
|
|
|
|
|
|
|
axes1.set_ylabel(r'$R_d$',fontsize=30) |
|
|
|
|
axes1.legend(fontsize=36,loc='upper right') |
|
|
|
|
axes1.set_xlim([0,0.51]) |
|
|
|
|
axes1.set_ylim([-1000,65000]) |
|
|
|
|
axes1.set_xlim([0,0.8]) |
|
|
|
|
axes1.set_ylim([-1000,66000]) |
|
|
|
|
axes1.set_box_aspect(1/2) |
|
|
|
|
plt.xticks(fontsize=28) |
|
|
|
|
plt.yticks(fontsize=28) |
|
|
|
|