Skip to content

Commit

Permalink
fixes label offsets and increases the threshold where we stop adding …
Browse files Browse the repository at this point in the history
…labels (awslabs#65)
  • Loading branch information
markjschreiber authored and aws-ktsayers committed Sep 17, 2024
1 parent 8bb899c commit 92b04f1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions omics/cli/run_analyzer/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def plot_timeline(tasks, title="", time_units="min", max_duration_hrs=5, show_pl

p_run = figure(width=960, height=800, sizing_mode="stretch_both", tooltips=tooltips)
p_run.hbar(
# start time bar
y="y",
left="starting_left",
right="starting_right",
Expand All @@ -98,6 +99,7 @@ def plot_timeline(tasks, title="", time_units="min", max_duration_hrs=5, show_pl
legend_label="starting",
)
p_run.hbar(
# running time bar
y="y",
left="running_left",
right="running_right",
Expand All @@ -106,9 +108,12 @@ def plot_timeline(tasks, title="", time_units="min", max_duration_hrs=5, show_pl
source=source,
legend_label="running",
)
if len(data) < 50:
if len(data) < 101:
p_run.text(
x="text_x",
# task name label
color="black",
x="running_right",
x_offset=10,
y="y",
text="name",
alpha=0.4,
Expand Down

0 comments on commit 92b04f1

Please sign in to comment.