Zooming in and out, rotating, etc. while taking data

3 Ansichten (letzte 30 Tage)
JP
JP am 1 Jul. 2013
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!

Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by