You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I using the function for creating dendrogram, I meet some wrong presentation of the leaves.
In your code(~/.local/lib/python3.6/site-packages/plotly/figure_factory/_dendrogram.py), we can see that
Above code without comment is the original code for determination the y axis tick or labels. In the first image I provide, you can see that 138-140 line code will raise silent error which mean wrong alignment of leaves of dendrogram and labels.
So I make a litter bit revise of this by 142-145 code (Of course without comment and I have use this in my computer, as far as I see, it will not raise any conflict.) .
Here is the code
if len(self.zero_vals) > len(yvals) + 1:
l_border = int(min(self.zero_vals))
r_border = int(max(self.zero_vals))
self.zero_vals = [v for v in range(l_border,r_border + 1, int((r_border-l_border) / len(yvals)))]
When I using the function for creating dendrogram, I meet some wrong presentation of the leaves.

In your code(~/.local/lib/python3.6/site-packages/plotly/figure_factory/_dendrogram.py), we can see that

Above code without comment is the original code for determination the y axis tick or labels. In the first image I provide, you can see that 138-140 line code will raise silent error which mean wrong alignment of leaves of dendrogram and labels.
So I make a litter bit revise of this by 142-145 code (Of course without comment and I have use this in my computer, as far as I see, it will not raise any conflict.) .
Here is the code
#1180
The text was updated successfully, but these errors were encountered: