umap icon indicating copy to clipboard operation
umap copied to clipboard

Plotting the axis label in "umap.plot.points"

Open kuri54 opened this issue 4 years ago • 4 comments

Is it possible to produce x axis label and y axis label when drawing using "umap.plot.points"?

How should the coordinates of each vertex used in the official "Plotting UMAP results (https://umap-learn.readthedocs.io/en/latest/plotting.html)" be determined?

kuri54 avatar Aug 21 '20 07:08 kuri54

umap.points returns an axes subplot, so you can just set x and y labels using the built-in methods for matplotlib axes doc: https://matplotlib.org/3.3.2/api/axes_api.html

np.random.seed(42) data = np.random.rand(800, 4) fit = umap.UMAP().fit(data) ax = umap.plot.points(fit) ax.set_xlabel("x label") ax.set_ylabel("y label")

oaoni avatar Oct 28 '20 16:10 oaoni

I'm sorry. I guess my poor English didn't get it right.

I wanted to know if there is a way to make the "umap.plot" method also display ticks on the axis as shown in the attached figure. スクリーンショット 2020-10-29 15 05 13

kuri54 avatar Oct 29 '20 06:10 kuri54

Any way of plotting the umaps plots without x and y axis? @oaoni @kuri54 @Fil @jondo

jjyotikataria avatar Sep 18 '21 05:09 jjyotikataria

@jjyotikataria whatever "without axis" means, it works as in any other axes subplot, see @oaoni's comment.

jondo avatar Sep 18 '21 14:09 jondo