Quiver3 resets axes automatically?

2 ビュー (過去 30 日間)
Tyler
Tyler 2018 年 4 月 14 日
編集済み: Tyler 2018 年 4 月 14 日
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?

回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by