def plot1(self):
# fig = pl.figure(figsize=(8,8))
ax1 = fig.add_subplot(111, projection='3d')
ax1.scatter(self.x,self.y,self.z,c='k',s=10,marker='.')
# pl.plot(self.x, self.y,'ok')
# pl.plot(self.x, self.y,'c')
# ???
ax1.set_zlabel('$z$')
ax1.set_ylabel('$y$')
ax1.set_xlabel('$x$')
ax1.set_title('Random walk in three dimensions')
# def plot2(self):
## fig = pl.figure(figsize=(8,8))
# ax = fig.add_subplot(111, projection='3d')
# ax1.scatter(self.x,self.y,self.z,c='r',s=100,marker='o')
final code23.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录