Create modules/visualization.py
Browse files- modules/visualization.py +34 -0
modules/visualization.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import plotly.graph_objects as go
|
| 2 |
+
|
| 3 |
+
def create_consciousness_map(data):
|
| 4 |
+
lvl = data["dimensional_level"]
|
| 5 |
+
fig = go.Figure(go.Bar(
|
| 6 |
+
x=[lvl["level"]], y=[lvl["score"]],
|
| 7 |
+
marker_color="cyan"
|
| 8 |
+
))
|
| 9 |
+
fig.update_layout(
|
| 10 |
+
title="Mapa de Conciencia",
|
| 11 |
+
paper_bgcolor="black", plot_bgcolor="black"
|
| 12 |
+
)
|
| 13 |
+
return fig
|
| 14 |
+
|
| 15 |
+
def create_evolution_timeline(futures):
|
| 16 |
+
fig = go.Figure()
|
| 17 |
+
for i, s in enumerate(futures):
|
| 18 |
+
fig.add_trace(go.Scatter(
|
| 19 |
+
x=[i], y=[s["probability"]],
|
| 20 |
+
mode="markers+text", text=[s["name"]],
|
| 21 |
+
marker=dict(size=20, color="magenta")
|
| 22 |
+
))
|
| 23 |
+
fig.update_layout(
|
| 24 |
+
title="Timeline Evolutivo",
|
| 25 |
+
paper_bgcolor="black", plot_bgcolor="black"
|
| 26 |
+
)
|
| 27 |
+
return fig
|
| 28 |
+
|
| 29 |
+
def create_quantum_network(data):
|
| 30 |
+
fig = go.Figure()
|
| 31 |
+
fig.update_layout(
|
| 32 |
+
title="Red Cuántica (pendiente)",
|
| 33 |
+
paper_bgcolor="black", plot_bgcolor="black"
|
| 34 |
+
)
|