Skip to content

Commit

Permalink
Fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Sep 30, 2024
1 parent 77c67ce commit 32af456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/startup_scripts/0002_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _extract_info(self, ax: Axes) -> None:
for line in ax.get_lines():
label = line.get_label()
if label.startswith("_child"):
number = int(label[7:])
number = int(label[6:])
label = f"Line {number}"

points = [(x, y) for x, y in zip(line.get_xdata(), line.get_ydata())]
Expand Down Expand Up @@ -155,7 +155,7 @@ def _extract_info(self, ax: Axes) -> None:
for container in ax.containers:
group_label = container.get_label()
if group_label.startswith("_container"):
number = int(group_label[11:])
number = int(group_label[10:])
group_label = f"Group {number}"

heights = [rect.get_height() for rect in container]
Expand Down

0 comments on commit 32af456

Please sign in to comment.