peter2000 commited on
Commit
3b46d6c
β€’
1 Parent(s): 9c68e6b

Update apps/sdg_pd.py

Browse files
Files changed (1) hide show
  1. apps/sdg_pd.py +14 -15
apps/sdg_pd.py CHANGED
@@ -18,20 +18,19 @@ def app():
18
  agree = st.checkbox('add labels')
19
 
20
  if agree:
21
-
22
- with st.spinner("πŸ‘‘ create visualisation"):
23
- fig = px.scatter_3d(
24
- df_osdg, x='coord_x', y='coord_y', z='coord_z',
25
- color='labels',
26
- opacity = .5, hover_data=[keys])
27
- fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
28
- fig.update_traces(marker_size=4)
29
- st.plotly_chart(fig)
30
  else:
31
  with st.spinner("πŸ‘‘ create visualisation"):
32
- fig = px.scatter_3d(
33
- df_osdg, x='coord_x', y='coord_y', z='coord_z',
34
- opacity = .5, hover_data=[keys])
35
- fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
36
- fig.update_traces(marker_size=4)
37
- st.plotly_chart(fig)
 
18
  agree = st.checkbox('add labels')
19
 
20
  if agree:
21
+ with st.spinner("πŸ‘‘ create visualisation"):
22
+ fig = px.scatter_3d(
23
+ df_osdg, x='coord_x', y='coord_y', z='coord_z',
24
+ color='labels',
25
+ opacity = .5, hover_data=[keys])
26
+ fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
27
+ fig.update_traces(marker_size=4)
28
+ st.plotly_chart(fig)
 
29
  else:
30
  with st.spinner("πŸ‘‘ create visualisation"):
31
+ fig = px.scatter_3d(
32
+ df_osdg, x='coord_x', y='coord_y', z='coord_z',
33
+ opacity = .5, hover_data=[keys])
34
+ fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
35
+ fig.update_traces(marker_size=4)
36
+ st.plotly_chart(fig)