Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ custom_css = """
|
|
| 99 |
height: 380px !important;
|
| 100 |
}
|
| 101 |
#custom_plot {
|
| 102 |
-
height:
|
| 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=(
|
| 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")
|