Display the Vertex and Triangle labels on the plot
5 次查看(过去 30 天)
显示 更早的评论
Hello, As in 2D data we can label the vertex and triangle through the code : triplot(dt);
%Display the Vertex and Triangle labels on the plot
>>hold on
>>vxlabels = arrayfun(@(n) {sprintf('P%d', n)}, (1:10)');
>>Hpl = text(x, y, vxlabels, 'FontWeight', 'bold', 'HorizontalAlignment',...
'center', 'BackgroundColor', 'none');
>>ic = incenters(dt);
>>numtri = size(dt,1);
>>trilabels = arrayfun(@(x) {sprintf('T%d', x)}, (1:numtri)');
>>Htl = text(ic(:,1), ic(:,2), trilabels, 'FontWeight', 'bold', ...
'HorizontalAlignment', 'center', 'Color', 'blue');
>>hold off
How can i label it for 3d points?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axis Labels 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!