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!