Skip to content
Snippets Groups Projects
Commit d451a2a5 authored by Blaise Li's avatar Blaise Li
Browse files

Trying to have more readable boxplots.

parent f5991cb0
No related branches found
No related tags found
No related merge requests found
...@@ -284,10 +284,13 @@ def plot_counts_distribution(data, xlabel): ...@@ -284,10 +284,13 @@ def plot_counts_distribution(data, xlabel):
def plot_boxplots(data, ylabel): 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) ax.set_ylabel(ylabel)
for label in ax.get_xticklabels(): for label in ax.get_xticklabels():
label.set_rotation(90) label.set_rotation(90)
plt.tight_layout()
# Cutoffs in log fold change # Cutoffs in log fold change
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment