umap
umap copied to clipboard
Plotting the axis label in "umap.plot.points"
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?
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")
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.
Any way of plotting the umaps plots without x and y axis? @oaoni @kuri54 @Fil @jondo
@jjyotikataria whatever "without axis" means, it works as in any other axes subplot, see @oaoni's comment.