Skip to content

Commit

Permalink
add comment on constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mbelak-dtml committed Nov 2, 2023
1 parent ae8dc36 commit 9f5e219
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edvart/report_sections/bivariate_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ def contingency_table(
)
if size_factor == "auto":
n_digits_max = np.floor(np.log10(table.max().max()))
# Constants chosen empirically to make the numbers fit in the cells
size_factor = max(
0.72,
0.18 * (1 + n_digits_max),
Expand Down

0 comments on commit 9f5e219

Please sign in to comment.