From b2f1b522b076ce73029e5f800969628b42a5c5ec Mon Sep 17 00:00:00 2001 From: Lucille Delisle Date: Tue, 26 Sep 2023 14:01:13 +0200 Subject: [PATCH] Do not use Tick.label --- deeptools/correlation.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deeptools/correlation.py b/deeptools/correlation.py index 3f961d18..56b8d91d 100755 --- a/deeptools/correlation.py +++ b/deeptools/correlation.py @@ -503,8 +503,9 @@ def plot_scatter(self, plot_filename, plot_title='', image_format=None, log1p=Fa top=False, bottom=False, direction='out') - for tick in ax.xaxis.get_major_ticks(): - tick.label.set_rotation(45) + ax.get_xaxis().set_tick_params( + which='major', + labelrotation=45) if col != num_samples - 1: ax.set_yticklabels([]) @@ -522,8 +523,9 @@ def plot_scatter(self, plot_filename, plot_title='', image_format=None, log1p=Fa top=False, bottom=True, direction='out') - for tick in ax.xaxis.get_major_ticks(): - tick.label.set_rotation(45) + ax.get_xaxis().set_tick_params( + which='major', + labelrotation=45) else: ax.set_xticklabels([])