Skip to content

Commit

Permalink
include contributions in chart title
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Dec 19, 2024
1 parent e956756 commit 4260a30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dp_wizard/app/components/column_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,11 @@ def column_plot():
contributions=contributions,
weighted_epsilon=epsilon * weight / weights_sum,
)
s = "s" if contributions > 1 else ""
title = f"Simulated {name}: normal distribution, {contributions} contribution{s} / invidual"
return plot_histogram(
histogram,
error=accuracy,
cutoff=0, # TODO
title=f"Simulated {name}, assuming normal distribution",
title=title,
)

0 comments on commit 4260a30

Please sign in to comment.