From f71c0d5b04a2bb504acf306be11705ae0515aa14 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 4 Oct 2021 06:28:25 +0300 Subject: Swap axis labels Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/non-clustered-heatmaps-and-flipping.gmi * Switch the axis labels to make them less confusing for the user. --- gn3/heatmaps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gn3/heatmaps.py b/gn3/heatmaps.py index 00f4353..7e7113d 100644 --- a/gn3/heatmaps.py +++ b/gn3/heatmaps.py @@ -372,7 +372,7 @@ def clustered_heatmap( cols=num_cols, shared_yaxes="rows", horizontal_spacing=0.001, - subplot_titles=["distance"] + x_axis_data, + subplot_titles=[x_axis["label"]] + x_axis_data, figure=ff.create_dendrogram( np.array(clustering_data), orientation="right", labels=y_axis_data)) hms = [go.Heatmap( @@ -393,7 +393,7 @@ def clustered_heatmap( "xaxis": { "mirror": False, "showgrid": True, - "title": x_axis["label"] + "title": "Distance" }, "yaxis": { "title": y_axis["label"] -- cgit v1.2.3