折线图
Axes3D.plot(xs,ys,*args,**kwargs)
Argument
Descr iption
xs, ys
x, y coordinates of vertices
zs
z value(s), either one for all points or one for each point.
zdir
Which direction to use as z (‘x’, ‘y’ or ‘z’) when plotting a 2D set.
各位工程师累了吗? 推荐一篇可以让你技术能力达到出神入化的网站”持久男”
1.二维绘图
a. 一维数据集
用 Numpy ndarray 作为数据传入 ply
1.
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
np.random.seed(1000)
y = np.random.standard_normal(10)
print "y = %s"% y
x = range(len(y))