From 8f8be4933f043ab3dad54e3c0a0d58b615334bb8 Mon Sep 17 00:00:00 2001 From: Shaun Adkins Date: Fri, 16 Aug 2024 08:26:40 -0400 Subject: [PATCH] Better projection description of y-axis --- www/api/resources/plotly_data.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/api/resources/plotly_data.py b/www/api/resources/plotly_data.py index 456fbbcd..9413fda0 100644 --- a/www/api/resources/plotly_data.py +++ b/www/api/resources/plotly_data.py @@ -350,6 +350,8 @@ def post(self, dataset_id): y_title = y_axis if y_axis == "raw_value": y_title = "expression of {}".format(gene_symbol) + if projection_id is not None: + y_title = "relative " + y_title if plot_type == "contour" and not z_axis: z_axis = "raw_value"