Skip to content

Commit 52048eb

Browse files
committed
Fix x and y axis naming in dendrogram trace
1 parent 69c20f7 commit 52048eb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [UNRELEASED]
6+
7+
### Fixed
8+
- Fix issue with creating dendrogram in subplots [[#4411](https://github.com/plotly/plotly.py/pull/4411)],
9+
510
## [5.18.0] - 2023-10-25
611

712
### Updated

Diff for: packages/python/plotly/plotly/figure_factory/_dendrogram.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ def get_dendrogram_traces(
387387
except ValueError:
388388
y_index = ""
389389

390-
trace["xaxis"] = "x" + x_index
391-
trace["yaxis"] = "y" + y_index
390+
trace["xaxis"] = f"x{x_index}"
391+
trace["yaxis"] = f"y{y_index}"
392392

393393
trace_list.append(trace)
394394

0 commit comments

Comments
 (0)