add `truncate_mode` for Dendrogram
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in packages/python/plotly/plotly/figure_factory/_dendrogram.py, especially create_dendrogram() near line 25 and the scipy sch.dendrogram() call near line 343. Check scipy's truncate_mode documentation, then ensure the parameter is accepted and passed through so large dendrograms can be condensed as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100