Fixedn the time between restars plot
This commit is contained in:
parent
0fb8ccae73
commit
e079927b84
|
@ -146,7 +146,10 @@ def inlet_flow_waveform(project_folder,t_btw_rst,N_ts,dt,T_cyc,n_cyc):
|
|||
ax.spines['right'].set_visible(False)
|
||||
ax.spines['top'].set_visible(False)
|
||||
# Adding label to the points
|
||||
time = ['$t_1$', '$t_2$', '$t_3$', '$t_4$', '$t_5$', '$t_6$']
|
||||
|
||||
time = []
|
||||
for i in range(0,np.unique(np.round(t_pts,3)).shape[0]):
|
||||
time.append('$t_'+str(i+1)+'$')
|
||||
for x, y, t in zip(t_pts[(-n_cyc-1):], Q_pts[(-n_cyc-1):], time):
|
||||
plt.text(x, y, t, transform=trans_offset, fontsize=12)
|
||||
plt.show()
|
||||
|
|
Loading…
Reference in New Issue
Block a user