frances-dean commited on
Commit
35efbad
·
verified ·
1 Parent(s): ad9c3eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = 1000
835
 
836
  fig, ax = plt.subplots(figsize=(6, 4))
837
  plt.ylim((0,220))
@@ -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
- 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)
 
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 = 100
835
 
836
  fig, ax = plt.subplots(figsize=(6, 4))
837
  plt.ylim((0,220))
 
861
  y = Plv0[start:end]
862
  x2 = Vlvs[start:end]
863
  y2 = Plvs[start:end]
864
+ line1.set_data(x, y, lw=1, color='b',label='No LVAD')
865
+ line2.set_data(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)