Skip to content

Commit

Permalink
also make plot title conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Jan 15, 2025
1 parent 48c1239 commit 6f25df7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dp_wizard/app/components/column_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,11 @@ def data_frame():
def histogram_preview_plot():
accuracy, histogram = accuracy_histogram()
s = "s" if contributions > 1 else ""
title = (
f"Simulated {name}: normal distribution, "
f"{contributions} contribution{s} / invidual"
title = ", ".join(
[
name if public_csv_path else f"Simulated {name}: normal distribution",
f"{contributions} contribution{s} / invidual",
]
)
return plot_histogram(
histogram,
Expand Down

0 comments on commit 6f25df7

Please sign in to comment.