Ayushs799 commited on
Commit
51bb6a3
1 Parent(s): 68e7521

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -75,7 +75,7 @@ if __name__ == '__main__':
75
 
76
  with right:
77
  st.subheader('Original Signal')
78
- fig1, ax1 = plt.figure(), plt.gca()
79
  ax1.plot(signal[signal_select])
80
  ax1.set_xlabel('Time')
81
  ax1.set_ylabel('Amplitude')
@@ -97,7 +97,7 @@ if __name__ == '__main__':
97
 
98
  with right:
99
  st.subheader('Detrended Signal')
100
- fig2, ax2 = plt.figure(), plt.gca()
101
 
102
  if trend_type == 'Dont Remove':
103
  detrend_signal = signal[signal_select]
@@ -126,7 +126,7 @@ if __name__ == '__main__':
126
 
127
  with right:
128
  st.subheader('Savitzky-Golay Filter applied to Detrended Signal')
129
- fig3, ax3 = plt.figure(), plt.gca()
130
 
131
  if trend_type == 'Dont Remove':
132
  detrend_signal = signal[signal_select]
@@ -153,7 +153,7 @@ if __name__ == '__main__':
153
 
154
  with right:
155
  st.subheader('Moving Average Filter applied to Detrended Signal')
156
- fig4, ax4 = plt.figure(), plt.gca()
157
 
158
  if trend_type == 'Dont Remove':
159
  detrend_signal = signal[signal_select]
@@ -189,7 +189,7 @@ if __name__ == '__main__':
189
 
190
  with right:
191
  st.subheader('Gaussian Filter apllied to Detrended Signal')
192
- fig5, ax5 = plt.figure(), plt.gca()
193
 
194
  if trend_type == 'Dont Remove':
195
  detrend_signal = signal[signal_select]
 
75
 
76
  with right:
77
  st.subheader('Original Signal')
78
+ fig1, ax1 = plt.figure(figsize=(10,5),dpi=150), plt.gca()
79
  ax1.plot(signal[signal_select])
80
  ax1.set_xlabel('Time')
81
  ax1.set_ylabel('Amplitude')
 
97
 
98
  with right:
99
  st.subheader('Detrended Signal')
100
+ fig2, ax2 = plt.figure(figsize=(10,5),dpi=150), plt.gca()
101
 
102
  if trend_type == 'Dont Remove':
103
  detrend_signal = signal[signal_select]
 
126
 
127
  with right:
128
  st.subheader('Savitzky-Golay Filter applied to Detrended Signal')
129
+ fig3, ax3 = plt.figure(figsize=(10,5),dpi=150), plt.gca()
130
 
131
  if trend_type == 'Dont Remove':
132
  detrend_signal = signal[signal_select]
 
153
 
154
  with right:
155
  st.subheader('Moving Average Filter applied to Detrended Signal')
156
+ fig4, ax4 = plt.figure(figsize=(10,5),dpi=150), plt.gca()
157
 
158
  if trend_type == 'Dont Remove':
159
  detrend_signal = signal[signal_select]
 
189
 
190
  with right:
191
  st.subheader('Gaussian Filter apllied to Detrended Signal')
192
+ fig5, ax5 = plt.figure(figsize=(10,5),dpi=150), plt.gca()
193
 
194
  if trend_type == 'Dont Remove':
195
  detrend_signal = signal[signal_select]