diff --git a/CHANGES.txt b/CHANGES.txt index a0e10a774..6d2d5d04f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,7 @@ +3.3.2 + + * Fixed --yAxisLabel in plotProfile (issue #889) + 3.3.1 * Fixed `--plotNumbers` not working in `plotCorrelation`. This was issue #838. diff --git a/deeptools/plotProfile.py b/deeptools/plotProfile.py index 0d103d519..a47e509df 100644 --- a/deeptools/plotProfile.py +++ b/deeptools/plotProfile.py @@ -765,6 +765,8 @@ def plot_profile(self): ticks[0].label1.set_horizontalalignment('left') ticks[-1].label1.set_horizontalalignment('right') + if first and self.y_axis_label != '': + ax.set_ylabel(self.y_axis_label) if first and self.plot_type not in ['heatmap', 'overlapped_lines']: ax.legend(loc=self.legend_location.replace('-', ' '), ncol=1, prop=self.font_p,