@@ -86,15 +86,15 @@ new_issue_lifetime = np.array(
8686
8787glue("num_new_issues", len(newly_created))
8888glue("num_new_issues_closed", percent_val(len(new_issues_closed), len(newly_created)))
89- glue("new_issue_avg_lifetime ", f"{np.mean (new_issue_lifetime)}")
89+ glue("new_issue_median_lifetime ", f"{np.median (new_issue_lifetime)}")
9090```
9191
9292{glue: text }` num_new_issues ` new issues have been opened since
9393{glue: text }` query_date ` , of which {glue: text }` num_new_issues_closed ` have been
9494closed.
9595
96- The average lifetime of new issues that were created and closed in this period
97- is {glue: text }` new_issue_avg_lifetime ` .
96+ The median lifetime of new issues that were created and closed in this period
97+ is {glue: text }` new_issue_median_lifetime ` .
9898
9999% TODO: replace with bokeh or some other live-plot
100100% TODO: for any remaining static/mpl plots, set default params for things
@@ -112,10 +112,15 @@ h, bedges = np.histogram(
112112 new_issue_lifetime.astype("m8[D]").astype(int), bins=np.arange(30)
113113)
114114
115- p = figure(width=670, height=400, title=title, tooltips=[("value", "@top")])
115+ p = figure(
116+ width=670,
117+ height=400,
118+ title=title,
119+ tooltips=[("lifetime", "@right days"), (r"# issues", "@top")],
120+ )
116121p.quad(top=h, bottom=0, left=bedges[:-1], right=bedges[1:])
117122p.xaxis.axis_label = "Issue lifetime (days)"
118- p.yaxis.axis_label = TeX(r"\frac{issues}{day}")
123+ p.yaxis.axis_label = "# Issues"
119124show(p)
120125```
121126
0 commit comments