Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -845,8 +845,8 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=True):
|
|
| 845 |
point2 = ax.scatter(Vlvs[start:(start+1)], Plvs[start:(start+1)], color=(78/255, 192/255, 44/255), s=5)#, label='End Diastole')
|
| 846 |
#point = ax.scatter(volumes[start:(start+1)], pressures[start:(start+1)], c="b", s=5, label='End Systole')
|
| 847 |
else:
|
| 848 |
-
line1 = ax.plot(Vlv0, Plv0, color='blue', label='No LVAD') #blue
|
| 849 |
-
line2 = ax.plot(Vlvs, Plvs, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min") #green
|
| 850 |
|
| 851 |
ax.set_xlabel('LV Volume (ml)')
|
| 852 |
ax.set_ylabel('LV Pressure (mmHg)')
|
|
@@ -861,8 +861,8 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=True):
|
|
| 861 |
y = Plv0[start:end]
|
| 862 |
x2 = Vlvs[start:end]
|
| 863 |
y2 = Plvs[start:end]
|
| 864 |
-
|
| 865 |
-
|
| 866 |
|
| 867 |
|
| 868 |
plt.legend(loc='upper left', framealpha=1)
|
|
|
|
| 845 |
point2 = ax.scatter(Vlvs[start:(start+1)], Plvs[start:(start+1)], color=(78/255, 192/255, 44/255), s=5)#, label='End Diastole')
|
| 846 |
#point = ax.scatter(volumes[start:(start+1)], pressures[start:(start+1)], c="b", s=5, label='End Systole')
|
| 847 |
else:
|
| 848 |
+
line1, = ax.plot(Vlv0, Plv0, color='blue', label='No LVAD') #blue
|
| 849 |
+
line2, = ax.plot(Vlvs, Plvs, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min") #green
|
| 850 |
|
| 851 |
ax.set_xlabel('LV Volume (ml)')
|
| 852 |
ax.set_ylabel('LV Pressure (mmHg)')
|
|
|
|
| 861 |
y = Plv0[start:end]
|
| 862 |
x2 = Vlvs[start:end]
|
| 863 |
y2 = Plvs[start:end]
|
| 864 |
+
ax.plot(x, y, lw=1, color='b',label='No LVAD')
|
| 865 |
+
ax.plot(x2, y2, lw=1, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min")
|
| 866 |
|
| 867 |
|
| 868 |
plt.legend(loc='upper left', framealpha=1)
|