Removed axes3ds dependency.

This commit is contained in:
spencerfolk
2023-12-15 11:00:30 -05:00
parent 2b3df3e5f9
commit 53ccb003dd
7 changed files with 72 additions and 185 deletions

View File

@@ -2,7 +2,7 @@ import numpy as np
from scipy.spatial.transform import Rotation
import matplotlib.pyplot as plt
from rotorpy.utils.axes3ds import Axes3Ds
# from rotorpy.utils.axes3ds import Axes3Ds
from rotorpy.utils.animate import animate
import os
@@ -38,7 +38,8 @@ class Plotter():
# 3D Paths
fig = plt.figure('3D Path')
ax = Axes3Ds(fig)
# ax = Axes3Ds(fig)
ax = fig.add_subplot(projection='3d')
self.world.draw(ax)
ax.plot3D(self.x[:,0], self.x[:,1], self.x[:,2], 'b.')
ax.plot3D(self.x_des[:,0], self.x_des[:,1], self.x_des[:,2], 'k')