Dynamically changing axes limits - stop jitter when a new number appears

4 次查看(过去 30 天)
I am making a 3D animation to visualise some trajectories I'm generating using MATLAB. I have some graphs that show the states over time. The x axis limits are changed during every frame to show the previous 8 seconds of action. It all works OK but whenever a new seconds number appear the graphs 'flicker' which is not visually appealing.
The line of code that controls the x-axis is:
xlim(axAttitude,[tInterp(ii)-xAxisLimLeft tInterp(ii)+1])
It's best understood with an example: http://i.imgur.com/dhTDoZt.mp4
Does anyone have any suggestions on how to stop this from happening?
Thanks,
Jonathan

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by