Dynamically changing axes limits - stop jitter when a new number appears
4 views (last 30 days)
Show older comments
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])
Does anyone have any suggestions on how to stop this from happening?
Thanks,
Jonathan
0 Comments
Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!