plotly / plotly/plotly.py

add `truncate_mode` for Dendrogram

未關閉
#3,598 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

feature P3
主要語言
Python
星號
18.8k
分支
2.8k
平均合併
16 小時 26 分鐘
30 天內合併 PR
21

描述

Hi!

How are you?

I would like to propose a change for the _dendrogram.py file to be able to use truncate_mode parameter from scipy.

From their documentation, the trucate_mode is an optional parameter which can be used to condense the figure, making it more easy to read when you have a large dataset.

This should be as easy as adding the parameter to the create_dendrogram(), which will in turn pass it to scipy's sch.dendrogram()

Thank you for your time.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 packages/python/plotly/plotly/figure_factory/_dendrogram.py 開始,重點查看第 25 行附近的 create_dendrogram() 以及第 343 行附近對 scipy sch.dendrogram() 的呼叫。檢查 scipy 關於 truncate_mode 的文件,然後確保接受並傳遞該參數,以便按預期壓縮大型樹狀圖。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
data-visualization
Issue 類型
功能
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。