plotly / plotly/plotly.py

add `truncate_mode` for Dendrogram

Open
#3,598 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.