From e725ccbf3c3d49fcdd060e6206c2d09a28b17b5d Mon Sep 17 00:00:00 2001 From: Shaun Adkins Date: Fri, 13 Dec 2024 09:06:50 -0500 Subject: [PATCH] tSNE plots should now scale properly --- www/api/resources/tsne_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/api/resources/tsne_data.py b/www/api/resources/tsne_data.py index aa2e5d25..6d894b50 100644 --- a/www/api/resources/tsne_data.py +++ b/www/api/resources/tsne_data.py @@ -517,7 +517,7 @@ def post(self, dataset_id): dpi = io_fig.dpi # default dpi is 100, but will be saved as 150 later on # With 2 plots as a default (gene expression and colorize_by), we want to grow the figure size slowly based on the number of plots - num_plots_wide = max_columns if max_columns else num_plots + num_plots_wide = max_columns if plot_by_group and max_columns else num_plots num_plots_high = ceil(num_plots / num_plots_wide) # set the figsize based on the number of plots