From 4260a30030b73f8245bd8e439b8bf92fabada095 Mon Sep 17 00:00:00 2001 From: Chuck McCallum Date: Thu, 19 Dec 2024 14:31:33 -0500 Subject: [PATCH] include contributions in chart title --- dp_wizard/app/components/column_module.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dp_wizard/app/components/column_module.py b/dp_wizard/app/components/column_module.py index f899ae7..47054b9 100644 --- a/dp_wizard/app/components/column_module.py +++ b/dp_wizard/app/components/column_module.py @@ -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, )