alkzar90 commited on
Commit
432ab81
1 Parent(s): 9131bec
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -6,12 +6,12 @@ number_of_observations = st.slider('Number of observations', min_value=50, max_v
6
  X = np.column_stack((np.ones(number_of_observations),
7
  np.random.random(number_of_observations))
8
 
9
- fig = plt.figure(dpi=80, figsize=(7,7))
10
- ax = fig.add_subplot(111)
11
  ax.set_xlim((0,1))
12
  ax.set_ylim((-5,20))
13
- plt.scatter(X[:,1], y, c='r', edgecolors='#fda172')
14
- line_thickness = 2
15
- line, = ax.plot([], [], lw=line_thickness)
16
  st.pyplot(fig)
17
  st.write(X[:5, :])
 
6
  X = np.column_stack((np.ones(number_of_observations),
7
  np.random.random(number_of_observations))
8
 
9
+
10
+ fig, ax = plt.subplots()
11
  ax.set_xlim((0,1))
12
  ax.set_ylim((-5,20))
13
+ ax.scatter(X[:,1], y, c='r', edgecolors='#fda172')
14
+ #line_thickness = 2
15
+ #line, = ax.plot([], [], lw=line_thickness)
16
  st.pyplot(fig)
17
  st.write(X[:5, :])