简体   繁体   English

3D散点中的标记点

[英]Labelling points in 3d scatter

I have a series of highly-dimensional points. 我有一系列高维度的观点。 When plotting them in 2D, I can highlight clusters in different colors/markers using: 当以2D方式绘制它们时,我可以使用以下方式突出显示不同颜色/标记的簇:

gscatter(new_data(1,:),new_data(2,:),trainlabels,[],'<x+*sdv^o>ph.')

I would like to do the same with a 3D scatter, but understand that a gscatter3 function doesn't exist and scatter3 doesn't allow me to specify a label set... 我想对3D散点图做同样的事情,但要知道gscatter3函数不存在,并且scatter3不允许我指定标签集...

Any thoughts? 有什么想法吗?

You can use the command text (x,y,z,str) to label your points in 3D. 您可以使用命令文本 (x,y,z,str)标记3D中的点。

scatter3(pointList(1,:),pointList(2,:), pointList(2,:));
text(pointList(1,:),pointList(2,:), pointList(2,:), trainlabels[]);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM