Skip to main content

cumulative_line_plot()

Cumulative commits over time, one step line per repo.

Usage

Source

cumulative_line_plot(
    commits,
    repo=None,
    date_begin=None,
    date_end=None,
    top_n=10,
    show_other=True,
    title=None
)

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).

top_n: int = 10

Number of most active repos drawn as their own lines.

show_other: bool = True

Roll the remaining repos into an "Other" line.

title: str = None
Plot title. Defaults to the repo name(s) or "All repos".

Returns

matplotlib.figure.Figure