From 280c2ed528286783e2e02a8fd33cf1fa9ad3a58c Mon Sep 17 00:00:00 2001 From: I-Hsuan Lin <9032946+ycl6@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:10:33 +0000 Subject: [PATCH] Fix yticks warning (#141) --- src/MISO/misopy/sashimi_plot/plot_utils/plot_gene.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MISO/misopy/sashimi_plot/plot_utils/plot_gene.py b/src/MISO/misopy/sashimi_plot/plot_utils/plot_gene.py index 7da0177..69ec56a 100644 --- a/src/MISO/misopy/sashimi_plot/plot_utils/plot_gene.py +++ b/src/MISO/misopy/sashimi_plot/plot_utils/plot_gene.py @@ -451,10 +451,10 @@ def plot_density(sashimi_obj, pickle_filename, event, plot_title=None, group_inf curr_yticklabels.append("%.1f" %(label)) else: curr_yticklabels.append("%d" %(label)) + curr_ax.set_yticks(universal_yticks) curr_ax.set_yticklabels(curr_yticklabels, fontsize=font_size) curr_ax.spines["left"].set_bounds(0, max_used_yval) - curr_ax.set_yticks(universal_yticks) curr_ax.yaxis.set_ticks_position('left') curr_ax.spines["right"].set_color('none') if show_ylabel: