From 32fb90521fbada3d37764264b6b9a4d89a482da0 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Wed, 9 Aug 2023 17:32:19 +0200
Subject: [PATCH] Results: Plot: XY: Fix fill.

---
 src/View/Results/PlotXY.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/View/Results/PlotXY.py b/src/View/Results/PlotXY.py
index a88071f8..3e7a88f3 100644
--- a/src/View/Results/PlotXY.py
+++ b/src/View/Results/PlotXY.py
@@ -159,9 +159,8 @@ class PlotXY(APlot):
 
         poly_x = poly_l_x + list(reversed(poly_r_x)) + [poly_l_x[0]]
         poly_y = poly_l_y + list(reversed(poly_r_y)) + [poly_l_y[0]]
-        # FIXME: Fill do not works ? (tmp fix: use plot)
-        self.canvas.axes.fill(poly_x, poly_y, color='blue', alpha=0.5)
-        self.canvas.axes.plot(poly_x, poly_y, color='blue', alpha=0.5)
+
+        self.canvas.axes.fill(poly_x, poly_y, color='blue', alpha=1)
 
         self.canvas.axes.autoscale_view(True, True, True)
         self.canvas.axes.autoscale()
-- 
GitLab