lmcinnes / lmcinnes/umap

plt.colorbar support for umap.plot.points

Open
#485 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.3k
Forks
871
Avg merge
1d 13h
Merged PRs (30d)
5

Description

Hello, umap.plot.points does not seem to support a colour bar when colouring the points with continuous values, is this a design choice?

I've tried
```python
umap.plot.points(umap_object, values = array_of_numbers)
plt.colorbar()
```
With no success.

I think it'd be quite handy to have such functionality

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 at umap.plot.points and inspect how continuous values are used to color points, then check how matplotlib's plt.colorbar receives the plotted object. Done means points colored by continuous values can expose a usable colorbar without breaking existing plotting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.