Radio1 Streamlit 기본 문법(5) : radio(라디오) 위젯 라디오 위젯 사용하기 3개의 라디오 버튼을 만들고, 서로 다른 유형의 그래프를 보여주는 코드 def plot_matplotlib(): st.title('산점도 Matplotlib') fig, ax = plt.subplots() ax.scatter(iris['sepal_length'], iris['sepal_width']) st.pyplot(fig) def plot_seaborn(): st.title('산점도 Seaborn') fig, ax = plt.subplots() sns.scatterplot(iris, x = 'sepal_length', y ='sepal_width') st.pyplot(fig) def plot_plotly(): st.title('Scatter Plot with Plotly') fi.. 2023. 7. 28. 이전 1 다음 728x90