Quiver3 resets axes automatically?

2 views (last 30 days)
Tyler
Tyler on 14 Apr 2018
Edited: Tyler on 14 Apr 2018
I'm using the quiver3 function in a for loop, and each time I am replotting the arrows in different locations. However, I want the axis limits to stay constant for the entire loop. I se tthe axis limits using xlim, ylim and zlim, and I set the XLimMode (and Y and Z modes) to 'manual'. However, as I go through the loop, this mode changes to auto and I don't know how to prevent that. I even set it to manual and reset the limits in each iteration, but when it runs quiver3, the axes limits still change.
One guess I have is that it may be because I have not enabled the 'hold on' command. But if I do this, it plots every iteration on top of each other. I have tried assigning the quiver3 plot to a handle, like h1 = quiver3(...), and then deleting h1 each time through the loop, but this doesn't work (they still plot on top of each other). I've tried looking at the quiver3 documentation, but it's difficult for me to pinpoint how the XLimMode could be resetting itself with this function. Does anyone know why this happens?

Answers (0)

Categories

Find more on Surfaces, Volumes, and Polygons in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!