ibrahim yıldız commited on
Commit
157004e
·
verified ·
1 Parent(s): 414892d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -40,13 +40,13 @@ def annot(xcrd, zcrd, txt, xancr='center'):
40
 
41
  # The Streamlit app
42
  def main():
43
- st.title('Quite Accurate Solar System Visualization')
44
  st.write('##### Zoom in to realize how small and insignificant you are!')
45
 
46
  # VISUALIZE THE SOLAR SYSTEM
47
  diameter_km = [1391016, 4879, 12104, 12756, 6792, 142984, 120536, 51118, 49528]
48
  diameter = [((i / 142984) * 10) for i in diameter_km] # Scale diameters
49
- distance_from_sun = [0, 120, 170, 220, 320, 800, 1500, 3000, 4500] # Adjusted distances
50
 
51
  # Set up orbit traces
52
  traces_orbits = [
@@ -62,12 +62,12 @@ def main():
62
 
63
  # Use the same to draw a few rings for Saturn
64
  traces_rings_saturn = [
 
65
  orbits(30, distance_from_sun[6], '#827962', 3),
66
  orbits(40, distance_from_sun[6], '#827962', 3),
67
  orbits(50, distance_from_sun[6], '#827962', 3),
68
  orbits(60, distance_from_sun[6], '#827962', 3),
69
- orbits(70, distance_from_sun[6], '#827962', 3),
70
- orbits(80, distance_from_sun[6], '#827962', 3)
71
  ]
72
 
73
  layout=go.Layout(
@@ -77,19 +77,19 @@ def main():
77
  scene = dict(
78
  xaxis=dict(title='Distance from the Sun',
79
  titlefont_color='black',
80
- range=[-5000,5000], # Adjusted range
81
  backgroundcolor='black',
82
  color='black',
83
  gridcolor='black'),
84
  yaxis=dict(title='Distance from the Sun',
85
  titlefont_color='black',
86
- range=[-5000,5000], # Adjusted range
87
  backgroundcolor='black',
88
  color='black',
89
  gridcolor='black'
90
  ),
91
  zaxis=dict(title='',
92
- range=[-5000,5000], # Adjusted range
93
  backgroundcolor='black',
94
  color='white',
95
  gridcolor='black'
 
40
 
41
  # The Streamlit app
42
  def main():
43
+ st.title('Solar System Visualization')
44
  st.write('##### Zoom in to realize how small and insignificant you are!')
45
 
46
  # VISUALIZE THE SOLAR SYSTEM
47
  diameter_km = [1391016, 4879, 12104, 12756, 6792, 142984, 120536, 51118, 49528]
48
  diameter = [((i / 142984) * 10) for i in diameter_km] # Scale diameters
49
+ distance_from_sun = [0, 200, 300, 400, 500, 1000, 1800, 3500, 5000] # Increased distances
50
 
51
  # Set up orbit traces
52
  traces_orbits = [
 
62
 
63
  # Use the same to draw a few rings for Saturn
64
  traces_rings_saturn = [
65
+ orbits(20, distance_from_sun[6], '#827962', 3),
66
  orbits(30, distance_from_sun[6], '#827962', 3),
67
  orbits(40, distance_from_sun[6], '#827962', 3),
68
  orbits(50, distance_from_sun[6], '#827962', 3),
69
  orbits(60, distance_from_sun[6], '#827962', 3),
70
+ orbits(70, distance_from_sun[6], '#827962', 3)
 
71
  ]
72
 
73
  layout=go.Layout(
 
77
  scene = dict(
78
  xaxis=dict(title='Distance from the Sun',
79
  titlefont_color='black',
80
+ range=[-6000,6000],
81
  backgroundcolor='black',
82
  color='black',
83
  gridcolor='black'),
84
  yaxis=dict(title='Distance from the Sun',
85
  titlefont_color='black',
86
+ range=[-6000,6000],
87
  backgroundcolor='black',
88
  color='black',
89
  gridcolor='black'
90
  ),
91
  zaxis=dict(title='',
92
+ range=[-6000,6000],
93
  backgroundcolor='black',
94
  color='white',
95
  gridcolor='black'