Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Arman Khalatyan
okd-panel
Commits
eb6c79cd
Commit
eb6c79cd
authored
Jul 16, 2020
by
Arman Khalatyan
Browse files
Update app.py
parent
71653eba
Pipeline
#1166
passed with stages
in 11 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
webapp/app.py
View file @
eb6c79cd
...
...
@@ -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
,
10000
0
)
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment