plt.colorbar support for umap.plot.points
See original GitHub issueHello, 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
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Plotting UMAP results — umap 0.5 documentation
The umap. plot. points function will color the data with a categorical colormap according to the labels provided. Alternatively you may have extra...
Read more >umap Documentation - Read the Docs
umap.plot.points function will color the data with a categorical colormap according to the labels provided. umap.plot.points(mapper, ...
Read more >Add colorbar labels as text on scatter plot - Stack Overflow
1 Answer 1 ... Your code for the annotations is writing an annotation for each and every dot. This just ends in a...
Read more >Customizing Colorbars | Python Data Science Handbook
Customizing Colorbars · Plot legends identify discrete labels of discrete points. · As we have seen several times throughout this section, the simplest...
Read more >matplotlib.pyplot.colorbar — Matplotlib 3.6.2 documentation
Add a colorbar to a plot. ... The matplotlib.cm.ScalarMappable (i.e., AxesImage , ContourSet , etc.) described by this colorbar. This argument is mandatory...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @lucharo , not sure if your issue is still outstanding, but I recently ran into a similar problem myself. I implemented a quick workaround which I will share below.
First create a pcolormesh for the series which you will be coloring with umap:
Then create the umap points plot as usual, ensuring the data series and color theme are the same:
Now create the colorbar from the pcolormesh and draw alongside the umap figure:
From here you can edit the colorbar object as you please to change the label size, tick colors, etc …
Hope this helps!
@lc5415, would you mind showing your emulating function?