From ead8790f1e994da4edb443e2ee875e221b6e4bc9 Mon Sep 17 00:00:00 2001
From: Le Roux Erwan <erwan.le-roux@irstea.fr>
Date: Tue, 5 Mar 2019 14:43:10 +0100
Subject: [PATCH] [SCM] fix kde plot shape. modify its y axis

---
 experiment/meteo_france_SCM_study/safran/safran_visualizer.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/experiment/meteo_france_SCM_study/safran/safran_visualizer.py b/experiment/meteo_france_SCM_study/safran/safran_visualizer.py
index 49d50941..ed9264a8 100644
--- a/experiment/meteo_france_SCM_study/safran/safran_visualizer.py
+++ b/experiment/meteo_france_SCM_study/safran/safran_visualizer.py
@@ -119,7 +119,9 @@ class StudyVisualizer(object):
 
         # Kde plot, and retrieve the data forming the line
         color_kde = 'b'
-        sns.kdeplot(all_massif_data, bw=1, ax=ax, color=color_kde, vertical=self.vertical_kde_plot).set(xlim=0)
+        sns.kdeplot(all_massif_data, ax=ax, color=color_kde, vertical=self.vertical_kde_plot)
+        ax.set(ylim=0)
+        ax.set(xlim=0)
         data_x, data_y = ax.lines[0].get_data()
 
         # Plot the mean and median points
-- 
GitLab