From 117acb437eabca116030524eee056eefe1385228 Mon Sep 17 00:00:00 2001 From: Tom Eichlersmith <31970302+tomeichlersmith@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:17:18 -0500 Subject: [PATCH] change connected dots to a scatter plot We could get a scatter plot by altering the `format` passed to `plot` but `scatter` has nice defaults. --- Validation/src/Validation/_differ.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Validation/src/Validation/_differ.py b/Validation/src/Validation/_differ.py index da309f0cc..752c29e50 100644 --- a/Validation/src/Validation/_differ.py +++ b/Validation/src/Validation/_differ.py @@ -137,12 +137,13 @@ def plot1d(self, column, xlabel, denominator, bins, _denominator_art = raw_histograms[0] bin_centers = (bins[1:]+bins[:-1])/2 for values, _bins, art in raw_histograms[1:]: - ratio_ax.plot( + ratio_ax.scatter( bin_centers, values/denominator, color = art[0].get_edgecolor() ) - + + ratio_ax.set_ylabel('Ratio') ratio_ax.set_xlabel(xlabel) if tick_labels is not None: ratio_ax.set_xticks((bins[1:]+bins[:-1])/2)