Skip to content

Commit

Permalink
Merge pull request #39 from score-p/feature/performance-monitoring
Browse files Browse the repository at this point in the history
fix visualization
  • Loading branch information
elwer authored Nov 25, 2024
2 parents 4b9305e + 612b466 commit d62017c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jumper/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def plot_graph(ax, metric, perfdata, time_indices=None, color=None):
# in multi node case, we have to iterate over the indices (
# time_indices) and not only 0 here
current_index = 0
target_index = -1
target_index = 0
transition_offset = (x_scale[1] - x_scale[0]) / 2
start_offset = 0
last_idx = time_indices[0][-1][0]
Expand All @@ -167,7 +167,7 @@ def plot_graph(ax, metric, perfdata, time_indices=None, color=None):
transition_offset = 0
ax.axvspan(
x_scale[current_index] + start_offset,
x_scale[target_index] + transition_offset,
x_scale[min(target_index, len(x_scale)-1)] + transition_offset,
facecolor=color[cell_idx],
alpha=0.3,
)
Expand All @@ -177,7 +177,7 @@ def plot_graph(ax, metric, perfdata, time_indices=None, color=None):
+ start_offset
+ (
(
x_scale[target_index]
x_scale[min(target_index, len(x_scale)-1)]
+ transition_offset
- x_scale[current_index]
+ start_offset
Expand Down

0 comments on commit d62017c

Please sign in to comment.