leuschnm commited on
Commit
f4c6304
·
1 Parent(s): db580c5
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -149,12 +149,13 @@ def main():
149
  update_plot(df, preds, axs, fig)
150
 
151
  def update_plot2(ax):
152
- x = np.linspace(0, 2*np.pi, 100)
153
- y = np.sin(x)
154
- ax.plot(x, y, label='New Line')
155
- ax.legend()
156
- st.pyplot()
157
 
 
158
  # Create an initial plot
159
  figs, ax = plt.subplots()
160
  x_initial = np.linspace(0, 2*np.pi, 100)
 
149
  update_plot(df, preds, axs, fig)
150
 
151
  def update_plot2(ax):
152
+ x = np.linspace(0, 2*np.pi, 100)
153
+ y = np.sin(x)
154
+ ax.plot(x, y, label='New Line')
155
+ ax.legend()
156
+ st.pyplot()
157
 
158
+ st.button('Add Line')
159
  # Create an initial plot
160
  figs, ax = plt.subplots()
161
  x_initial = np.linspace(0, 2*np.pi, 100)