Skip to content

Commit

Permalink
Add function to ploy avg daily commits by member count size and lang
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrorseth committed Apr 3, 2022
1 parent fb15666 commit b50cc82
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ def plot_boxplots(data: Dict[str, List[Any]], title: str, xlabel: str, ylabel: s
plt.clf()


def plot_daily_commits_boxplots(language: str, data: Dict[str, List[Any]],
output_filename: OutputFile) -> None:
"""
Build a figure containing multiple boxplots, one for each member count size category. Each
boxplot corresponds to an entry in the specified `data` dict, where each key is a member
count size category, and the associated list of values are the average # daily commits (for
each project in that size category). Example `data` dict:
```
{'Very Small': [2.0,4.5,6.0], 'Small': [1.0,1.5,8.0,0.9,1.7], ...}
```
"""
plot_boxplots(data, f"{language} Projects", 'Project Member Count Size',
'Average # Daily Commits', output_filename, show_outliers=False)


def plot_code_coverage_boxplots(coverage: Dict[str, List[Any]], output_filename: OutputFile) -> None:
"""
Build a figure containing multiple boxplots, one for the code coverage of each different
Expand Down

0 comments on commit b50cc82

Please sign in to comment.