Plotting background stuck as black
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
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 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