【发布时间】:2016-09-03 16:02:00
【问题描述】:
所以第一个情节:
clear all; close all;
figure; hold on
points=[0 0 0; 0.5 0 0; 0.5 0.5 0; 0 0.5 0; 0 0 0];
plot3(points(:,1), points(:,2), points(:,3),'c','linewidth', 2);
scatter3(points(:,1),points(:,2),points(:,3),40,'filled','k');
但没有问题。当我使用旋转工具旋转图形时,带有 scatter3 的点图始终显示在线图的顶部。
现在!!
当我绘制时:
figure;
hold on;
points=[0 0 0; 0.5 0 0; 0.5 0.5 0; 0 0.5 0; 0 0 0; ...
0 0 1; 0.5 0 1; 0.5 0.5 1; 0 0.5 1; 0 0 1];
plot3(points(:,1), points(:,2), points(:,3),'c','linewidth', 2);
sc=scatter3(points(:,1),points(:,2),points(:,3),40,'filled','k');
当我旋转图形时,线图几乎总是在散点的顶部(取决于角度的一点点),这不是我想要的。
我找到了某种可行的解决方案:uistack(sc)
但它不起作用。
那么我到底应该怎么做才能使散点显示在第一个图中?非常感谢答案。这对我的硕士论文非常重要:D
【问题讨论】:
-
所以当有不同z坐标的点时会出现问题:O
-
你能上传能证明问题的图片吗?
标签: matlab plot matlab-figure