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)