How to change the Coordinates of the object in the fill3 function?
2 views (last 30 days)
Show older comments
I have created an object and used fill3 to provide the face Colour. However, I need to update the position of this object over time.
Thus, I have written something like: axes01 = fill3(X1, Y1, Z1, C1)
When I need to re-position this object, I wrote: set(axes01, 'XData', X2) set(axes01, 'YData', Y2) set(axes01, 'ZData', Z2)
This does not seem to take effect and the filled areas of the object remained at the original position. How do i rectify this?
Thanks
0 Comments
Answers (1)
Jan
on 24 Jun 2015
Please post the code to reproduce your observation.
Did you insert a drawnow command to trigger an update of the graphics?
You can join the set commands:
set(axes01, 'XData', X2, 'YData', Y2, 'ZData', Z2);
See Also
Categories
Find more on Graphics Performance 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!