Zooming in and out, rotating, etc. while taking data
3 次查看(过去 30 天)
显示 更早的评论
Hi, I was wondering if it is possible to zoom in/out, rotate....essentially play around with a graph as it takes real time data. Basically what happens is I try to rotate or zoom and after a half second it just reverts back to its initial orientation and doesnt allow me to look at things more closely. This is problematic because look at things more in depth while the data is being taken. Is there a way to make it so the graph doesnt constantly update to its initial orientation? Roughly, here is my code for the graphing portion
figure(2)
%quiver3 gives direction the pointer/endoscope is pointing
quiver3(data.FinalOffsetPosition(1),data.FinalOffsetPosition(2),data.FinalOffsetPosition(3),35*data.EndoOrient(1),35*data.EndoOrient(2),35*data.EndoOrient(3),'r*');
hold on
%plot3 makes sure the reference tool is always positioned at (0,0,0) in its own frame
plot3(0,0,0,'b*');
xlim([-400 400]);
ylim([-400 400]);
zlim([-400 400]);
title('Position and Orientation of Endoscope');
xlabel('x-axis');
ylabel('y-axis');
zlabel('z-axis');
drawnow
hold off
Thank you very much for the help, let me know what I need to add!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!