Moins de barres dans l'histogramme distances #65

This commit is contained in:
Colin Maudry
2026-03-20 11:32:50 +01:00
parent dac9efee88
commit 771dcf0ea1
+1 -1
View File
@@ -594,7 +594,7 @@ def get_distance_histogram(lff: pl.LazyFrame) -> dcc.Graph:
fig = go.Figure() fig = go.Figure()
if len(log_distances) > 0: if len(log_distances) > 0:
counts, bin_edges = np.histogram(log_distances, bins=50) counts, bin_edges = np.histogram(log_distances, bins=25)
bin_centers = (bin_edges[:-1] + bin_edges[1:]) / 2 bin_centers = (bin_edges[:-1] + bin_edges[1:]) / 2
bin_widths = bin_edges[1:] - bin_edges[:-1] bin_widths = bin_edges[1:] - bin_edges[:-1]
bin_edges_km = 10.0**bin_edges bin_edges_km = 10.0**bin_edges