Skip to content

Commit a6662ab

Browse files
authored
Merge pull request #4487 from HugoDelatte/fix/dendrogram-array
Replaced scipy array by numpy array in dendrogram
2 parents 0b0cc22 + 423129e commit a6662ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ def get_dendrogram_traces(
343343
color_threshold=color_threshold,
344344
)
345345

346-
icoord = scp.array(P["icoord"])
347-
dcoord = scp.array(P["dcoord"])
348-
ordered_labels = scp.array(P["ivl"])
349-
color_list = scp.array(P["color_list"])
346+
icoord = np.array(P["icoord"])
347+
dcoord = np.array(P["dcoord"])
348+
ordered_labels = np.array(P["ivl"])
349+
color_list = np.array(P["color_list"])
350350
colors = self.get_color_dict(colorscale)
351351

352352
trace_list = []

0 commit comments

Comments
 (0)