Spaces:
Running
Running
frances-dean
commited on
Commit
•
93afe33
1
Parent(s):
6f37971
Update app.py
Browse files
app.py
CHANGED
@@ -831,7 +831,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=True):
|
|
831 |
new_ef, pao_ed, pao_es, CO, MAP, Vlvs, Plvs = f_lvad(Rs, Rm, Ra, Rc, Ca, Cs, Cr, Ls, Emin, Vd, Tc, start_v, Emax, c, slope0, w0, x60, y00, y01, y02, y03, y04)
|
832 |
|
833 |
# Create the figure and the loop that we will manipulate
|
834 |
-
N =
|
835 |
|
836 |
fig, ax = plt.subplots(figsize=(6, 4))
|
837 |
plt.ylim((0,220))
|
@@ -865,7 +865,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=True):
|
|
865 |
x2 = Vlvs[start:end]
|
866 |
y2 = Plvs[start:end]
|
867 |
#ax.plot(x2, y2, lw=1, color='b',label='No LVAD')
|
868 |
-
ax.plot(Vlv0[start:
|
869 |
ax.plot(x2, y2, lw=1, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min")
|
870 |
|
871 |
|
|
|
831 |
new_ef, pao_ed, pao_es, CO, MAP, Vlvs, Plvs = f_lvad(Rs, Rm, Ra, Rc, Ca, Cs, Cr, Ls, Emin, Vd, Tc, start_v, Emax, c, slope0, w0, x60, y00, y01, y02, y03, y04)
|
832 |
|
833 |
# Create the figure and the loop that we will manipulate
|
834 |
+
N = 3
|
835 |
|
836 |
fig, ax = plt.subplots(figsize=(6, 4))
|
837 |
plt.ylim((0,220))
|
|
|
865 |
x2 = Vlvs[start:end]
|
866 |
y2 = Plvs[start:end]
|
867 |
#ax.plot(x2, y2, lw=1, color='b',label='No LVAD')
|
868 |
+
ax.plot(Vlv0[start:(N)*60000], Plv0[start:(N)*60000], lw=1, color='b',label='No LVAD')
|
869 |
ax.plot(x2, y2, lw=1, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min")
|
870 |
|
871 |
|