aboutsummaryrefslogtreecommitdiff
path: root/gn3/heatmaps.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-10-04 06:28:25 +0300
committerBonfaceKilz2021-10-19 10:12:51 +0300
commitf71c0d5b04a2bb504acf306be11705ae0515aa14 (patch)
treeb78eba99ff5d2f7864003bf2f33fca006f468897 /gn3/heatmaps.py
parent0797e53220046d8f36a45d8b09b395b156d8fde7 (diff)
downloadgenenetwork3-f71c0d5b04a2bb504acf306be11705ae0515aa14.tar.gz
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.
Diffstat (limited to 'gn3/heatmaps.py')
-rw-r--r--gn3/heatmaps.py4
1 files 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"]