Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes label offsets and increases the threshold where we stop adding labels #65

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading