From 32f3687a1964983179b92612407a88332abd75c9 Mon Sep 17 00:00:00 2001 From: cchu70 Date: Fri, 1 Sep 2023 16:02:50 -0400 Subject: [PATCH] Update plot_cnv_profile.py plot_acr_subplots Current implementation of add_background requires that you loop through each subplot to update the background. Else, it only updates the background of the first subplot --- cnv_suite/visualize/plot_cnv_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cnv_suite/visualize/plot_cnv_profile.py b/cnv_suite/visualize/plot_cnv_profile.py index e73ca73..3e2dd1d 100644 --- a/cnv_suite/visualize/plot_cnv_profile.py +++ b/cnv_suite/visualize/plot_cnv_profile.py @@ -109,8 +109,8 @@ def plot_acr_subplots(fig_list, title, fig_names, csize, height_per_sample=350, fig.add_traces(sub_figure.data, rows=i + 1, cols=1) fig.update_yaxes(fig_list[i].layout.yaxis, row=i+1, col=1) - # Add chromosome background back in - add_background(fig, csize.keys(), csize) + # Add chromosome background back in + add_background(fig, csize.keys(), csize, plotly_row=i+1, plotly_col=1) # update height based on subplot number fig.update_layout(height=len(fig_list)*height_per_sample + 50,