Skip to content

Commit af58eca

Browse files
joernheesrgommers
authored andcommitted
BUG: cluster.dendrogram: missing font size doesn't reset rotation anymore.
1 parent a8c42d1 commit af58eca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scipy/cluster/hierarchy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def linkage(y, method='single', metric='euclidean'):
606606
for full descriptions.
607607
metric : str or function, optional
608608
The distance metric to use. See the ``distance.pdist`` function for a
609-
list of valid distance metrics. The customized distance can also be
609+
list of valid distance metrics. The customized distance can also be
610610
used. See the ``distance.pdist`` function for details.
611611
612612
Returns
@@ -1680,7 +1680,7 @@ def _plot_dendrogram(icoords, dcoords, ivl, p, n, mh, orientation,
16801680
map(lambda lbl: lbl.set_size(leaf_font_size), lbls)
16811681
else:
16821682
leaf_fs = float(_get_tick_text_size(len(ivl)))
1683-
map(lambda lbl: lbl.set_rotation(leaf_fs), lbls)
1683+
map(lambda lbl: lbl.set_size(leaf_fs), lbls)
16841684

16851685
# Make the tick marks invisible because they cover up the links
16861686
for line in ax.get_xticklines():
@@ -1708,7 +1708,7 @@ def _plot_dendrogram(icoords, dcoords, ivl, p, n, mh, orientation,
17081708
map(lambda lbl: lbl.set_size(leaf_font_size), lbls)
17091709
else:
17101710
leaf_fs = float(_get_tick_text_size(p))
1711-
map(lambda lbl: lbl.set_rotation(leaf_fs), lbls)
1711+
map(lambda lbl: lbl.set_size(leaf_fs), lbls)
17121712

17131713
ax.xaxis.set_ticks_position('top')
17141714
# Make the tick marks invisible because they cover up the links

0 commit comments

Comments
 (0)