Skip to content

Commit fcc9ed9

Browse files
fixes label offsets and increases the threshold where we stop adding labels (#65)
1 parent 9d058a5 commit fcc9ed9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

omics/cli/run_analyzer/timeline.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def plot_timeline(tasks, title="", time_units="min", max_duration_hrs=5, show_pl
8989

9090
p_run = figure(width=960, height=800, sizing_mode="stretch_both", tooltips=tooltips)
9191
p_run.hbar(
92+
# start time bar
9293
y="y",
9394
left="starting_left",
9495
right="starting_right",
@@ -98,6 +99,7 @@ def plot_timeline(tasks, title="", time_units="min", max_duration_hrs=5, show_pl
9899
legend_label="starting",
99100
)
100101
p_run.hbar(
102+
# running time bar
101103
y="y",
102104
left="running_left",
103105
right="running_right",
@@ -106,9 +108,12 @@ def plot_timeline(tasks, title="", time_units="min", max_duration_hrs=5, show_pl
106108
source=source,
107109
legend_label="running",
108110
)
109-
if len(data) < 50:
111+
if len(data) < 101:
110112
p_run.text(
111-
x="text_x",
113+
# task name label
114+
color="black",
115+
x="running_right",
116+
x_offset=10,
112117
y="y",
113118
text="name",
114119
alpha=0.4,

0 commit comments

Comments
 (0)