Quiver3 resets axes automatically?

2 visualizaciones (últimos 30 días)
Tyler
Tyler el 14 de Abr. de 2018
Editada: Tyler el 14 de Abr. de 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?

Respuestas (0)

Categorías

Más información sobre Surfaces, Volumes, and Polygons en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by