Skip to main content

spiral_points_plot()

Spiral of daily commits drawn as points sized by count.

Usage

Source

spiral_points_plot(
    commits,
    repo=None,
    date_begin=None,
    date_end=None,
    title=None,
    plot_type="matplotlib"
)

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

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

plot_type: str = "matplotlib"
"matplotlib" for a static figure or "plotly" for an interactive one with hover labels (needs hubbub[plotly]).

Returns

matplotlib.figure.Figure or plotly.graph_objects.Figure

Notes

The spiral makes one turn per year, starting at the center, with January at the top and months running clockwise.