## scatter_density_plot()


Scatter of commits across two of repo, time, date, and weekday.


Usage

``` python
scatter_density_plot(
    commits,
    repo=None,
    date_begin=None,
    date_end=None,
    x="date",
    y="time",
    plot_type="matplotlib",
    top_n=15,
    title=None,
    seed=1
)
```


Categorical axes (repo, weekday) are jittered so stacked commits stay visible.


## Parameters


`commits: polars.DataFrame`  
Commits from [collect_git_commits()](collect_git_commits.md#hubbub.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).

`x: str = ``"date"`  
Each one of `"repo"`, `"time"`, `"date"`, `"weekday"`; they must differ.

`y: str = ``"date"`  
Each one of `"repo"`, `"time"`, `"date"`, `"weekday"`; they must differ.

`plot_type: str = ``"matplotlib"`  
`"matplotlib"`, `"plotly"` (interactive; needs `hubbub[plotly]`), or `"density"` (matplotlib with marginal density curves).

`top_n: int = ``15`  
When `"repo"` is an axis and `repo` is `None`, keep this many of the most active repos.

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

`seed: int = ``1`  
Seed for the jitter.


## Returns


`matplotlib.figure.Figure or plotly.graph_objects.Figure`
