spiral_horizon_plot()
Spiral horizon chart of daily commits.
Usage
spiral_horizon_plot(
commits,
repo=None,
date_begin=None,
date_end=None,
title=None,
n_bands=4,
plot_type="matplotlib"
)Counts are split into n_bands bands. Each bar’s height shows the count within its band and its shade shows the band, so busy days read darker.
Parameters
commits: polars.DataFrame-
Commits from collect_git_commits().
repo: str or list of str = None-
Repo name(s) to keep.
Noneuses 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". n_bands: int = 4-
Number of shade bands.
plot_type: str = "matplotlib"-
"matplotlib"for a static figure or"plotly"for an interactive one with hover labels (needshubbub[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.