frances-dean commited on
Commit
7debea2
1 Parent(s): 8f99b2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -460,7 +460,7 @@ def pvloop_simulator(Rm, Ra, Emax, Emin, Vd, Tc, start_v, animate=True):
460
  pressures = pressure(t, volumes, init_Emax, init_Emin, Tc, init_Vd)
461
 
462
  # Create the figure and the loop that we will manipulate
463
- fig, ax = plt.subplots()
464
  plt.ylim((0,220))
465
  plt.xlim((0,250))
466
  start = (N-2)*60000
@@ -825,7 +825,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta):
825
  #compute new pv loops and ef with lvad added:
826
  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)
827
 
828
- fig, ax = plt.subplots()
829
  ax.plot(Vlv0, Plv0, color='blue', label='No LVAD') #blue
830
  ax.plot(Vlvs, Plvs, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min") #green
831
  plt.xlabel('LV volume (ml)')
 
460
  pressures = pressure(t, volumes, init_Emax, init_Emin, Tc, init_Vd)
461
 
462
  # Create the figure and the loop that we will manipulate
463
+ fig, ax = plt.subplots(figsize=(6, 4))
464
  plt.ylim((0,220))
465
  plt.xlim((0,250))
466
  start = (N-2)*60000
 
825
  #compute new pv loops and ef with lvad added:
826
  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)
827
 
828
+ fig, ax = plt.subplots(figsize=(4, 3))
829
  ax.plot(Vlv0, Plv0, color='blue', label='No LVAD') #blue
830
  ax.plot(Vlvs, Plvs, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min") #green
831
  plt.xlabel('LV volume (ml)')