From ccef4963d9903f192a8b49000d087ee21ba82595 Mon Sep 17 00:00:00 2001 From: Gerry Tonkin-Hill Date: Wed, 5 Feb 2025 03:23:19 +0000 Subject: [PATCH] fixing issues with ploty again --- panaroo/generate_qc_plots.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/panaroo/generate_qc_plots.py b/panaroo/generate_qc_plots.py index 51aba72..fc30f0e 100755 --- a/panaroo/generate_qc_plots.py +++ b/panaroo/generate_qc_plots.py @@ -232,12 +232,13 @@ def plot_ncontigs(input_gffs, outdir, no_plot=False): pointpos=-1.8) ] layout = go.Layout(autosize=True, - xaxis=dict(title='', - titlefont=dict(size=18, color='black'), + xaxis=dict(title=dict(text='', + font=dict(size=18, color='black')), + dict(text='', font=dict(size=18, color='black')) showticklabels=False, automargin=True), - yaxis=dict(title="Number of Contigs", - titlefont=dict(size=18, color='black'), + yaxis=dict(title=dict(text="Number of Contigs", + font=dict(size=18, color='black')), showticklabels=True, tickfont=dict(size=10, color='black'))) @@ -323,16 +324,16 @@ def plot_mash_contam(mash_contam_file, outdir): trace = go.Scatter(x=x, y=y, mode='markers', text=text, hoverinfo="text") layout = go.Layout(autosize=True, - xaxis=dict(title='Match', - titlefont=dict(size=18, color='black'), + xaxis=dict(title=dict(text='Match', + font=dict(size=18, color='black')), showticklabels=True, tickangle=45, ticktext=tick_labels, tickvals=tickvals, automargin=True, tickfont=dict(size=8, color='black')), - yaxis=dict(title="Percentage of shared hash's", - titlefont=dict(size=18, color='black'), + yaxis=dict(title=dict(text="Percentage of shared hash's", + font=dict(size=18, color='black')), showticklabels=True, tickangle=45, tickfont=dict(size=10, color='black')))