From a0ad2cdc25775b3f74ed6c6a9b2f253afcc5f789 Mon Sep 17 00:00:00 2001 From: mateuszwilinski Date: Wed, 13 Apr 2022 15:53:51 -0600 Subject: [PATCH] tiny upgrade to the plotting part of planar c fit --- scripts/fit_planar_c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fit_planar_c.py b/scripts/fit_planar_c.py index cec9856..38b727e 100644 --- a/scripts/fit_planar_c.py +++ b/scripts/fit_planar_c.py @@ -65,10 +65,10 @@ def objective_function(c, data): plt.bar(x, height=heights, width=widths, align="edge", alpha=0.5, label="data") plt.bar(x, height=heights_approx, width=widths, align="edge", alpha=0.5, label="optimal probabilities") - plt.plot(z, y, "r--", label="optimal affinity function") for _x in x[1:]: plt.axvline(_x, color='white', linewidth=1.4) + plt.plot(z, y, "r--", label="optimal affinity function") plt.ylabel("Probability") plt.ylabel("Distance (km)")