bdaiinstitute / spatialmath-python

Create, manipulate and convert representations of position and orientation in 2D or 3D using Python
MIT License
497 stars 82 forks source link

[Issue-126] fix several issues with animate #131

Closed jcao-bdai closed 1 month ago

jcao-bdai commented 1 month ago

Fix several issues related to #126

Example use-cases:

...
ax = fig.add_subplot(111, projection='3d')
T1.plot(ax=ax, dims=[-5, 10])
T1.animate(start=T2, ax=ax)  # would use the existing ax which is [-5, 10]
# T1.animate(start=T2, ax=ax, dims=[-10, 10])  # would use the existing ax and override its lims to [-10, 10]
plt.show()