@@ -6141,7 +6141,7 @@ def create_distplot(hist_data, group_labels,
61416141
61426142 @staticmethod
61436143 def create_dendrogram (X , orientation = "bottom" , labels = None ,
6144- colorscale = None , distfun = 2 ,
6144+ colorscale = None , distfun = None ,
61456145 linkagefun = lambda x : sch .linkage (x , 'complete' )):
61466146 """
61476147 BETA function that returns a dendrogram Plotly figure object.
@@ -7139,7 +7139,7 @@ class _Dendrogram(FigureFactory):
71397139
71407140 def __init__ (self , X , orientation = 'bottom' , labels = None , colorscale = None ,
71417141 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' )):
71437143 # TODO: protected until #282
71447144 from plotly .graph_objs import graph_objs
71457145 self .orientation = orientation
@@ -7160,6 +7160,7 @@ def __init__(self, X, orientation='bottom', labels=None, colorscale=None,
71607160 self .sign [self .yaxis ] = 1
71617161 else :
71627162 self .sign [self .yaxis ] = - 1
7163+ distfun = scs .distance .pdist
71637164
71647165 (dd_traces , xvals , yvals ,
71657166 ordered_labels , leaves ) = self .get_dendrogram_traces (X , colorscale , distfun , linkagefun )
0 commit comments