azarazua commited on
Commit
62db953
1 Parent(s): 9df31f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -44,7 +44,13 @@ if "set1" in globals():
44
  st.write("Scatter plot of Set 1 against Set 2")
45
  st.write("You can visualize the relationship between the two sets")
46
  st.write("Note: This plot requires 'matplotlib' which may not be supported in all Streamlit deployment environments.")
47
- st.pyplot(plt.scatter(set1, set2))
 
 
 
 
 
 
48
 
49
  else:
50
  st.write(":red[Please specify the number of data points]")
 
44
  st.write("Scatter plot of Set 1 against Set 2")
45
  st.write("You can visualize the relationship between the two sets")
46
  st.write("Note: This plot requires 'matplotlib' which may not be supported in all Streamlit deployment environments.")
47
+
48
+ # Create the scatter plot
49
+ fig, ax = plt.subplots()
50
+ ax.scatter(set1, set2)
51
+ ax.set_xlabel("Set 1")
52
+ ax.set_ylabel("Set 2")
53
+ st.pyplot(fig)
54
 
55
  else:
56
  st.write(":red[Please specify the number of data points]")