8000 Fixed interface to new version of matplotlib · painyeph/robotics-toolbox-python@e255e48 · GitHub
[go: up one dir, main page]

Skip to content

Commit e255e48

Browse files
committed
Fixed interface to new version of matplotlib
1 parent 220e818 commit e255e48

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.hgignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
syntax: glob
2+
*.pyc
3+
*.pyo

robot/trplot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import matplotlib.axes3d as p3
1+
import mpl_toolkits.mplot3d as p3
22
from numpy import * # for outer and arange
33
import pylab as p # for figure
44
from robot.Quaternion import *
@@ -22,9 +22,9 @@ def trplot(r, name=''):
2222

2323
fig=p.figure()
2424
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')
25+
ax.plot([0,x[0,0]], [0,x[0,1]], [0,x[0,2]], color='red')
26+
ax.plot([0,y[0,0]], [0,y[0,1]], [0,y[0,2]], color='green')
27+
ax.plot([0,z[0,0]], [0,z[0,1]], [0,z[0,2]], color='blue')
2828
p.show()
2929

3030
if __name__ == "__main__":

0 commit comments

Comments
 (0)
0