@@ -6141,7 +6141,7 @@ def create_distplot(hist_data, group_labels,
6141
6141
6142
6142
@staticmethod
6143
6143
def create_dendrogram (X , orientation = "bottom" , labels = None ,
6144
- colorscale = None , distfun = 2 ,
6144
+ colorscale = None , distfun = None ,
6145
6145
linkagefun = lambda x : sch .linkage (x , 'complete' )):
6146
6146
"""
6147
6147
BETA function that returns a dendrogram Plotly figure object.
@@ -7139,7 +7139,7 @@ class _Dendrogram(FigureFactory):
7139
7139
7140
7140
def __init__ (self , X , orientation = 'bottom' , labels = None , colorscale = None ,
7141
7141
width = "100%" , height = "100%" , xaxis = 'xaxis' , yaxis = 'yaxis' ,
7142
- distfun = scs . distance . pdist , linkagefun = lambda x : sch .linkage (x , 'complete' )):
7142
+ distfun = None , linkagefun = lambda x : sch .linkage (x , 'complete' )):
7143
7143
# TODO: protected until #282
7144
7144
from plotly .graph_objs import graph_objs
7145
7145
self .orientation = orientation
@@ -7160,6 +7160,7 @@ def __init__(self, X, orientation='bottom', labels=None, colorscale=None,
7160
7160
self .sign [self .yaxis ] = 1
7161
7161
else :
7162
7162
self .sign [self .yaxis ] = - 1
7163
+ distfun = scs .distance .pdist
7163
7164
7164
7165
(dd_traces , xvals , yvals ,
7165
7166
ordered_labels , leaves ) = self .get_dendrogram_traces (X , colorscale , distfun , linkagefun )
0 commit comments