Commit eb6c79cd authored by Arman Khalatyan's avatar Arman Khalatyan
Browse files

Update app.py

parent 71653eba
Pipeline #1166 passed with stages
in 11 minutes and 44 seconds
......@@ -46,17 +46,7 @@ def get_data_sql(Nstars=1000):
print('combining...')
df=pd.concat(dfvec)
return df
import streamlit as st
# To make things easier later, we're also importing numpy and pandas for
......@@ -144,7 +134,7 @@ def plot_figure_plotly(df,xname,yname):
st.title('The interactive maps')
st.write('## selected stars parameters')
N = st.slider("Pick a number", 1000, 100000, 10000,100000)
N = st.slider("Pick a number", 1000, 100000, 10000,10000)
df = get_data_sql(N)
map_cols=['xgal','ygal','zgal','rgal','ruwe','mg0','bprp0']
Nstars=len(df)
......@@ -165,8 +155,6 @@ colorname = st.sidebar.selectbox(
if st.checkbox('Show Scatter plot',value=False):
#plot_figure_plotly(df,xname,yname)
plot_figure_matplotlib(df, xname,yname,colorname)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment