8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 220e818 commit e255e48Copy full SHA for e255e48
.hgignore
@@ -0,0 +1,3 @@
1
+syntax: glob
2
+*.pyc
3
+*.pyo
robot/trplot.py
@@ -1,4 +1,4 @@
-import matplotlib.axes3d as p3
+import mpl_toolkits.mplot3d as p3
from numpy import * # for outer and arange
import pylab as p # for figure
4
from robot.Quaternion import *
@@ -22,9 +22,9 @@ def trplot(r, name=''):
22
23
fig=p.figure()
24
ax=p3.Axes3D(fig)
25
- ax.plot3d([0,x[0,0]], [0,x[0,1]], [0,x[0,2]], color='red')
26
- ax.plot3d([0,y[0,0]], [0,y[0,1]], [0,y[0,2]], color='green')
27
- ax.plot3d([0,z[0,0]], [0,z[0,1]], [0,z[0,2]], color='blue')
+ ax.plot([0,x[0,0]], [0,x[0,1]], [0,x[0,2]], color='red')
+ ax.plot([0,y[0,0]], [0,y[0,1]], [0,y[0,2]], color='green')
+ ax.plot([0,z[0,0]], [0,z[0,1]], [0,z[0,2]], color='blue')
28
p.show()
29
30
if __name__ == "__main__":
0 commit comments