Skip to content

Commit 81bf2c2

Browse files
committed
Invert y-axis for dendrogram orientations except 'top'
1 parent c71e155 commit 81bf2c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/marsilea/dendrogram.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,12 @@ def draw(
236236
ylim = self._render_ylim
237237
if orient in ["right", "left"]:
238238
xlim, ylim = ylim, xlim
239-
240239
if control_ax:
241240
ax.set_xlim(*xlim)
242241
ax.set_ylim(*ylim)
243242
if orient == "left":
244243
ax.invert_xaxis()
245-
if orient == "bottom":
244+
if orient != "top":
246245
ax.invert_yaxis()
247246

248247
if add_root:

0 commit comments

Comments
 (0)