Spaces:
Sleeping
Sleeping
Update app.py
#9
by Elin310 - opened
app.py
CHANGED
|
@@ -9,6 +9,8 @@ from copy import deepcopy
|
|
| 9 |
|
| 10 |
# ---- Config textura (Marte HD) ----
|
| 11 |
TEXTURE_URL = "https://upload.wikimedia.org/wikipedia/commons/7/70/Solarsystemscope_texture_8k_mars.jpg"
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# -------------------------------
|
| 14 |
# Materiales (diccionario base)
|
|
@@ -336,13 +338,14 @@ def trash_zone_anim(n_points=60, seed=7):
|
|
| 336 |
df = pd.DataFrame({"x": x, "y": y})
|
| 337 |
fig = go.Figure()
|
| 338 |
fig.add_scatter(x=df["x"], y=df["y"], mode="markers",
|
| 339 |
-
marker=dict(size=10), name="Trash")
|
| 340 |
bot_x, bot_y = -12, -7
|
| 341 |
fig.add_scatter(x=[bot_x], y=[bot_y], mode="markers",
|
| 342 |
-
marker=dict(size=16, symbol="triangle-up"), name="Bot")
|
| 343 |
-
fig.update_layout(title="Didactic Zone —
|
| 344 |
-
xaxis=dict(visible=False), yaxis=dict(visible=False),
|
| 345 |
height=380, margin=dict(l=10,r=10,t=40,b=10))
|
|
|
|
| 346 |
|
| 347 |
frames=[]
|
| 348 |
steps=18
|
|
|
|
| 9 |
|
| 10 |
# ---- Config textura (Marte HD) ----
|
| 11 |
TEXTURE_URL = "https://upload.wikimedia.org/wikipedia/commons/7/70/Solarsystemscope_texture_8k_mars.jpg"
|
| 12 |
+
IMAGE_JEZERO= "http://googleusercontent.com/image_collection/image_retrieval/3569487984916913084_0"
|
| 13 |
+
|
| 14 |
|
| 15 |
# -------------------------------
|
| 16 |
# Materiales (diccionario base)
|
|
|
|
| 338 |
df = pd.DataFrame({"x": x, "y": y})
|
| 339 |
fig = go.Figure()
|
| 340 |
fig.add_scatter(x=df["x"], y=df["y"], mode="markers",
|
| 341 |
+
marker=dict(size=10, color="blue"), name="Trash")
|
| 342 |
bot_x, bot_y = -12, -7
|
| 343 |
fig.add_scatter(x=[bot_x], y=[bot_y], mode="markers",
|
| 344 |
+
marker=dict(size=16, symbol="triangle-up",color="orange"), name="Bot")
|
| 345 |
+
fig.update_layout(title="Didactic Zone — Acumulated Non-Metabolic Waste (Jezero Crater Delta)",
|
| 346 |
+
xaxis=dict(visible=False, range=[-13, 13]), yaxis=dict(visible=False, range=[-8, 8]),
|
| 347 |
height=380, margin=dict(l=10,r=10,t=40,b=10))
|
| 348 |
+
images=[dict(source=IMAGE_JEZERO, xref="x", yref="y", x=-13, y=8, sizex=26, sizey=16, sizing="stretch", opacity=1.0, layer="below")])
|
| 349 |
|
| 350 |
frames=[]
|
| 351 |
steps=18
|