Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pyproject.toml #2672

Closed
wants to merge 1 commit into from
Closed

Update pyproject.toml #2672

wants to merge 1 commit into from

Conversation

Glfrey
Copy link

@Glfrey Glfrey commented Jul 9, 2023

I have implemented a simple check for the --labels command for the dendrogram plot without heat map. This wasn't previously implemented which resulted in an asymmetric handling of labels for the dendrogram and dendrogram+heatmap plot for the sourmash plot command.
Fixes #2667

@ctb ctb closed this in #2790 Oct 15, 2023
ctb added a commit that referenced this pull request Oct 15, 2023
This PR rationalizes `sig plot` arguments for `--labels` (show names)
and `--indices` (show numbers), and adds `--no-labels` and
`--no-indices`, as follows. See
#2667 for motivating bug.

1. `sourmash plot compare-demo` - labels on dendrogram, labels on matrix
✅ (FIXED)

2. `sourmash plot compare-demo --labels` - labels on both dendrogram and
matrix ✅

3. `sourmash plot compare-demo --indices` - indices on both dendrogram
and matrix ✅

4. `sourmash plot compare-demo --labels --indices` - labels on both ✅
(FIXED - labels override indices)

New arguments from this PR:

5. `sourmash plot compare-demo --no-labels` - indices on both ✅ 

6. `sourmash plot compare-demo --no-labels --no-indices` - no
labels/indices on either ✅

7. `sourmash plot compare-demo --no-indices` - labels on both ✅ 

The PR also simplifies some of the `plot` command code as well as code
in `fig.py`.

TODO:
- [x] write some tests for new args
- [x] update documentation
- [x] check to see if notebook code should be updated

Fixes #2667
Closes #2672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Differing dendrogram outputs from plot - --labeltext is honored differently by dendrogram and matrix outputs
1 participant