asd
This commit is contained in:
@ -56,15 +56,20 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
|
||||
|
||||
|
||||
current_val = []
|
||||
labels = []
|
||||
|
||||
for bnd_c in inputfile['estimation']['boundary_conditions']:
|
||||
|
||||
if 'windkessel' in bnd_c['type']:
|
||||
for bnd_set in inputfile['boundary_conditions']:
|
||||
if bnd_c['id'] == bnd_set['id']:
|
||||
current_val.append(bnd_set['value'][0])
|
||||
labels.append('R_' + str(bnd_c['id']))
|
||||
|
||||
elif 'dirichlet' in bnd_c['type']:
|
||||
current_val.append(inputfile['boundary_conditions'][1]['parameters']['U'])
|
||||
labels.append('U')
|
||||
|
||||
current_val.append(inputfile['boundary_conditions'][1]['parameters']['U'])
|
||||
|
||||
dim = dat['theta'].shape[-1]
|
||||
fig1, axes = plt.subplots(1,1,figsize=(8,6))
|
||||
@ -79,8 +84,8 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
|
||||
|
||||
col = cycle(['C0', 'C1', 'C2', 'C3','C4'])
|
||||
ls = cycle(['-', '-', '--', '--', ':', ':', '-.', '-.'])
|
||||
legends = cycle(['$R_3$','$R_4$','$R_5$','$R_6$','$U$'])
|
||||
#legends = cycle(['$R_3$','$U$'])
|
||||
#legends = cycle(['$R_3$','$R_4$','$R_5$','$R_6$','$U$'])
|
||||
legends = cycle(labels)
|
||||
|
||||
|
||||
col_ = next(col)
|
||||
|
Reference in New Issue
Block a user