lmcinnes / lmcinnes/umap

Plotting background stuck as black

Open
#893 0 comments 0 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

Hi there -- first of all, thank you for including the plot module in UMAP. It's a nice wrapper to datashader, and it was a good intro (for me) to datashader in the first place. I found what feels like a small bug in the plotting api:

x = np.random.normal(size=(100,2))
u = umap.UMAP().fit(x)
umap.plot.points(u, theme='viridis', background='white')

gives a black background. Seems like all the themes are stuck on a black background, actually. This makes it a bit difficult to visualize the darker colors.

I'm running umap 0.5.3, mpl 3.4.3. Thanks!

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 by running the provided umap.plot.points example with theme='viridis' and background='white', then inspect the plotting API's theme and background handling. Done means the requested white background is respected and the available themes no longer remain stuck on black.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.