Skip to main content

punchcard_plot()

Punchcard of commits by weekday and hour of day.

Usage

Source

punchcard_plot(
    commits,
    repo=None,
    date_begin=None,
    date_end=None,
    title=None,
    point_color="#1f6feb"
)

Circle area is proportional to the number of commits.

Parameters

commits: polars.DataFrame

Commits from collect_git_commits().

repo: str or list of str = None

Repo name(s) to keep. None uses all repos.

date_begin: str or datetime.date = None

Inclusive date bounds ("YYYY-MM-DD" strings work).

date_end: str or datetime.date = None

Inclusive date bounds ("YYYY-MM-DD" strings work).

title: str = None

Plot title. Defaults to the repo name(s) or "All repos".

point_color: str = "#1f6feb"
Fill color for the circles.

Returns

matplotlib.figure.Figure