From 2d2484d8fa260e2f1a4a458f1f4bd82de8b02583 Mon Sep 17 00:00:00 2001
From: Theophile Terraz <theophile.terraz@inrae.fr>
Date: Fri, 1 Dec 2023 15:51:40 +0100
Subject: [PATCH] change colors

---
 src/View/Results/PlotKPC.py | 2 +-
 src/View/Results/PlotXY.py  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/View/Results/PlotKPC.py b/src/View/Results/PlotKPC.py
index 217c2cc9..93f91c9f 100644
--- a/src/View/Results/PlotKPC.py
+++ b/src/View/Results/PlotKPC.py
@@ -101,7 +101,7 @@ class PlotKPC(PamhyrPlot):
 
             self.canvas.axes.fill_between(
                 kp, z_min, water_z,
-                color='blue', alpha=0.5, interpolate=True
+                color='skyblue', alpha=0.7, interpolate=True
             )
 
         self.profile, = self.canvas.axes.plot(
diff --git a/src/View/Results/PlotXY.py b/src/View/Results/PlotXY.py
index df7de78b..559fd9a6 100644
--- a/src/View/Results/PlotXY.py
+++ b/src/View/Results/PlotXY.py
@@ -136,7 +136,7 @@ class PlotXY(PamhyrPlot):
         poly_x = [0]
         poly_y = [0]
 
-        self.fill = self.canvas.axes.fill(poly_x, poly_y, color='blue', alpha=1)
+        self.fill = self.canvas.axes.fill(poly_x, poly_y, color='skyblue', alpha=0.7)
 
         #self.canvas.axes.autoscale_view(True, True, True)
         #self.canvas.axes.autoscale()
@@ -203,8 +203,8 @@ class PlotXY(PamhyrPlot):
                 #marker='o'
             #)
 
-        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]]
+        poly_x = poly_l_x + list(reversed(poly_r_x))
+        poly_y = poly_l_y + list(reversed(poly_r_y))
         poly = []
         for i in range(len(poly_x)):
             poly.append([poly_x[i], poly_y[i]])
-- 
GitLab