spiral_heatmap_plot()
Spiral of daily commits drawn as tiles colored by count.
Usage
spiral_heatmap_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.
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-
Colorbar 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 (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.