Tingxie commited on
Commit
11998e3
·
1 Parent(s): 676ad09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -99,7 +99,7 @@ custom_css = """
99
  height: 380px !important;
100
  }
101
  #custom_plot {
102
- height: 280px !important;
103
  }
104
  #custom_plot2 {
105
  height: 480px !important;
@@ -119,7 +119,7 @@ def draw_mass_spectrum(peak_data_path):
119
  ms2 = spectrum_processing(ms2)
120
  Mz = np.array(ms2.mz)
121
  Intens = np.array(ms2.intensities)
122
- plt.figure(figsize=(7,4))
123
  for i in range(len(Mz)):
124
  plt.axvline(x=Mz[i], ymin=0, ymax=Intens[i],c='red')
125
  plt.xlabel("m/z")
 
99
  height: 380px !important;
100
  }
101
  #custom_plot {
102
+ height: 300px !important;
103
  }
104
  #custom_plot2 {
105
  height: 480px !important;
 
119
  ms2 = spectrum_processing(ms2)
120
  Mz = np.array(ms2.mz)
121
  Intens = np.array(ms2.intensities)
122
+ plt.figure(figsize=(6,3))
123
  for i in range(len(Mz)):
124
  plt.axvline(x=Mz[i], ymin=0, ymax=Intens[i],c='red')
125
  plt.xlabel("m/z")