From d451a2a5350fa333ce6d95d3c167d8fba31c3355 Mon Sep 17 00:00:00 2001
From: Blaise Li <blaise.li@normalesup.org>
Date: Fri, 3 Nov 2017 17:17:38 +0100
Subject: [PATCH] Trying to have more readable boxplots.

---
 libhts/libhts.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libhts/libhts.py b/libhts/libhts.py
index 638b76d..7b23e8a 100644
--- a/libhts/libhts.py
+++ b/libhts/libhts.py
@@ -284,10 +284,13 @@ def plot_counts_distribution(data, xlabel):
 
 
 def plot_boxplots(data, ylabel):
-    ax = data.plot.box()
+    fig = plt.figure(figsize=(6, 12))
+    ax = fig.add_subplot(111)
+    data.plot.box(ax=ax)
     ax.set_ylabel(ylabel)
     for label in ax.get_xticklabels():
         label.set_rotation(90)
+    plt.tight_layout()
 
 
 # Cutoffs in log fold change
-- 
GitLab