Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,6 @@ import plotly.graph_objects as go
|
|
| 6 |
|
| 7 |
st.set_page_config(page_title="Plotly Graphing Libraries",layout='wide')
|
| 8 |
|
| 9 |
-
import streamlit as st
|
| 10 |
-
|
| 11 |
uploaded_files = st.file_uploader("Choose a CSV file", accept_multiple_files=True)
|
| 12 |
for uploaded_file in uploaded_files:
|
| 13 |
bytes_data = uploaded_file.read()
|
|
@@ -68,9 +66,6 @@ for uploaded_file in uploaded_files:
|
|
| 68 |
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
| 69 |
#fig.show()
|
| 70 |
st.plotly_chart(fig, use_container_width=True)
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
|
| 75 |
#show replace
|
| 76 |
if st.checkbox("replace"):
|
|
@@ -91,25 +86,24 @@ for uploaded_file in uploaded_files:
|
|
| 91 |
df =pd.read_excel(r"F:\book2.xlsx")
|
| 92 |
mydf.add_rows(df)
|
| 93 |
|
| 94 |
-
st.markdown("WebGL Rendering with 1,000,000 Points")
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
fig
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
)
|
| 111 |
#fig.show()
|
| 112 |
-
st.plotly_chart(fig, use_container_width=True)
|
| 113 |
|
| 114 |
|
| 115 |
|
|
|
|
| 6 |
|
| 7 |
st.set_page_config(page_title="Plotly Graphing Libraries",layout='wide')
|
| 8 |
|
|
|
|
|
|
|
| 9 |
uploaded_files = st.file_uploader("Choose a CSV file", accept_multiple_files=True)
|
| 10 |
for uploaded_file in uploaded_files:
|
| 11 |
bytes_data = uploaded_file.read()
|
|
|
|
| 66 |
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
| 67 |
#fig.show()
|
| 68 |
st.plotly_chart(fig, use_container_width=True)
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
#show replace
|
| 71 |
if st.checkbox("replace"):
|
|
|
|
| 86 |
df =pd.read_excel(r"F:\book2.xlsx")
|
| 87 |
mydf.add_rows(df)
|
| 88 |
|
| 89 |
+
#st.markdown("WebGL Rendering with 1,000,000 Points")
|
| 90 |
+
|
| 91 |
+
#N = 1000000
|
| 92 |
+
#fig = go.Figure()
|
| 93 |
+
#fig.add_trace(
|
| 94 |
+
#go.Scattergl(
|
| 95 |
+
#x = np.random.randn(N),
|
| 96 |
+
#y = np.random.randn(N),
|
| 97 |
+
#mode = 'markers',
|
| 98 |
+
#marker = dict(
|
| 99 |
+
#line = dict(
|
| 100 |
+
#width = 1,
|
| 101 |
+
#color = 'DarkSlateGrey')
|
| 102 |
+
#)
|
| 103 |
+
#)
|
| 104 |
+
#)
|
|
|
|
| 105 |
#fig.show()
|
| 106 |
+
#st.plotly_chart(fig, use_container_width=True)
|
| 107 |
|
| 108 |
|
| 109 |
|