Skip to content

Commit 6428683

Browse files
committed
Return a Figure object from create_dendrogram.
1 parent 1192f62 commit 6428683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/graph_objs/figure_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,8 +1098,8 @@ def create_dendrogram(X, orientation="bottom", labels=None,
10981098

10991099
dendrogram = _Dendrogram(X, orientation, labels, colorscale)
11001100

1101-
return {'layout': dendrogram.layout,
1102-
'data': dendrogram.data}
1101+
return GraphObjectFactory.create('figure', data=dendrogram.data,
1102+
layout=dendrogram.layout)
11031103

11041104

11051105
class _Quiver(FigureFactory):

0 commit comments

Comments
 (0)