Skip to content

Commit

Permalink
Fix plot to group by array on y-axis
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Jul 13, 2023
1 parent c376a18 commit d31fb74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cubed/extensions/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def on_compute_end(self, dag):
def create_timeline(stats, start_tstamp, end_tstamp, dst=None):
stats_df = pd.DataFrame(stats)

stats_df = stats_df.sort_values(
by=["task_create_tstamp", "array_name"], ascending=True
)

total_calls = len(stats_df)

palette = sns.color_palette("deep", 6)
Expand Down

0 comments on commit d31fb74

Please sign in to comment.