Update my_pages/multiverse.py
Browse files- my_pages/multiverse.py +2 -2
my_pages/multiverse.py
CHANGED
|
@@ -23,7 +23,7 @@ choices_list = [
|
|
| 23 |
]}
|
| 24 |
]
|
| 25 |
|
| 26 |
-
def build_tree_and_trace_path(selected_path, spread_factor=
|
| 27 |
"""
|
| 28 |
Build tree nodes and edges. Then trace selected_path (one choice per stage)
|
| 29 |
by walking children of the current node to find the matching label at each stage.
|
|
@@ -172,7 +172,7 @@ def render():
|
|
| 172 |
# max y among these nodes
|
| 173 |
max_y = max(positions[i][1] for i in stage_nodes)
|
| 174 |
x = float(stage_idx)
|
| 175 |
-
y = max_y + 0.
|
| 176 |
stage_label_traces.append(go.Scatter(
|
| 177 |
x=[x], y=[y],
|
| 178 |
text=[stage["label"]],
|
|
|
|
| 23 |
]}
|
| 24 |
]
|
| 25 |
|
| 26 |
+
def build_tree_and_trace_path(selected_path, spread_factor=5000):
|
| 27 |
"""
|
| 28 |
Build tree nodes and edges. Then trace selected_path (one choice per stage)
|
| 29 |
by walking children of the current node to find the matching label at each stage.
|
|
|
|
| 172 |
# max y among these nodes
|
| 173 |
max_y = max(positions[i][1] for i in stage_nodes)
|
| 174 |
x = float(stage_idx)
|
| 175 |
+
y = max_y + 0.5 * 5000 # offset above top node
|
| 176 |
stage_label_traces.append(go.Scatter(
|
| 177 |
x=[x], y=[y],
|
| 178 |
text=[stage["label"]],
|