How to update 3D plot in real time with slider?
Show older comments
I have an app that plots a 3D cube and black axis line. I plotted my cube and line as patches using the "fill3" function, and I turned on "rotate3D" to allow the plot to be freely rotated with the mouse. I also created a slider that adjusts the length of the black line. In the slider callback, I recall the "fill3" function with, in addition to the original unchanged data, the new data for the resized black line.
The issue is that when I adjust the slider, the view of my entire plot resets. In other words, any rotating I did with my mouse goes away. How do I prevent the view from resetting every time I use the slider callback function?
Accepted Answer
More Answers (0)
Categories
Find more on 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!