From 52048eb2b85259b8a0b854210f81dd50d102182e Mon Sep 17 00:00:00 2001 From: Brainor Date: Fri, 3 Nov 2023 13:36:58 +0800 Subject: [PATCH] Fix x and y axis naming in dendrogram trace --- CHANGELOG.md | 5 +++++ packages/python/plotly/plotly/figure_factory/_dendrogram.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af6a34b2fe..1f283c6e14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [UNRELEASED] + +### Fixed +- Fix issue with creating dendrogram in subplots [[#4411](https://github.com/plotly/plotly.py/pull/4411)], + ## [5.18.0] - 2023-10-25 ### Updated diff --git a/packages/python/plotly/plotly/figure_factory/_dendrogram.py b/packages/python/plotly/plotly/figure_factory/_dendrogram.py index 1f97cca230..a0c831921d 100644 --- a/packages/python/plotly/plotly/figure_factory/_dendrogram.py +++ b/packages/python/plotly/plotly/figure_factory/_dendrogram.py @@ -387,8 +387,8 @@ def get_dendrogram_traces( except ValueError: y_index = "" - trace["xaxis"] = "x" + x_index - trace["yaxis"] = "y" + y_index + trace["xaxis"] = f"x{x_index}" + trace["yaxis"] = f"y{y_index}" trace_list.append(trace)