asigalov61 commited on
Commit
5f96dd7
·
verified ·
1 Parent(s): eeeb22e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -94,15 +94,17 @@ def plot_ms_SONG(ms_song,
94
  max_val = max(plot_curve_values)
95
  spcva = [((value - min_val) / (max(max_val - min_val, 0.00001))) * 100 for value in plot_curve_values]
96
 
97
- x = stimes
98
- x_smooth = np.linspace(min(x), max(x), 300)
99
- spl = make_interp_spline(x, spcva, k=3)
100
- y_smooth = spl(x_smooth)
101
- ax.plot(x_smooth, y_smooth, color='white')
 
 
102
 
103
  # Set the limits of the plot
104
  ax.set_xlim([min(start_times), max(add_arrays(start_times, durations))])
105
- ax.set_ylim([min(y_smooth), max(y_smooth)])
106
 
107
  # Set the background color to black
108
  ax.set_facecolor('black')
 
94
  max_val = max(plot_curve_values)
95
  spcva = [((value - min_val) / (max(max_val - min_val, 0.00001))) * 100 for value in plot_curve_values]
96
 
97
+ #x = stimes
98
+ #x_smooth = np.linspace(min(x), max(x), 300)
99
+ #spl = make_interp_spline(x, spcva, k=3)
100
+ #y_smooth = spl(x_smooth)
101
+ #ax.plot(x_smooth, y_smooth, color='white')
102
+ x = [v / 2 for v in stimes]
103
+ plt.plot(x, spcva, marker='o', linestyle='-', color='w')
104
 
105
  # Set the limits of the plot
106
  ax.set_xlim([min(start_times), max(add_arrays(start_times, durations))])
107
+ ax.set_ylim([min(spcva), max(spcva)])
108
 
109
  # Set the background color to black
110
  ax.set_facecolor('black')