Skip to content

Commit

Permalink
Cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
soerface committed Nov 5, 2024
1 parent 318a883 commit 84d37c6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gantt.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def plot_gantt_chart(voucher, start_date: date, end_date: date):
user: plt.cm.tab20(i) for i, user in enumerate(df["username"].unique())
}

# Plotting
fig, ax = plt.subplots(figsize=(12, 6))

# Loop over each voucher and each record within each voucher
Expand Down Expand Up @@ -87,14 +86,11 @@ def plot_gantt_chart(voucher, start_date: date, end_date: date):
weight="bold",
)

# Customize axes and labels
ax.set_title("Voucherstats")
ax.set_yticks(range(len(voucher_ids)))
ax.set_yticklabels(voucher_ids)
# Generate dates and convert them to ordinals
date_range = pd.date_range(start_date, end_date)

# Customize axes and labels
ax.set_xticks(date_range)
ax.set_xticklabels(date_range.strftime("%Y-%m-%d"), rotation=90)

Expand Down

0 comments on commit 84d37c6

Please sign in to comment.