Matplotlib
%matplotlib inline
from matplotlib import pyplot as plt
plt.plot([2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], # 折线图
[1, 2, 3, 2, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1])
plt.bar([1, 2, 3], [1, 2, 3]) # 柱形图
plt.scatter(X, y) # 散点图
plt.pie([1, 2, 3, 4, 5]) # 饼状图
import matplotlib.pyplot as plt
plt.xlabel('xlabel')
plt.ylabel('ylabel')
plt.xlim((0,20)) # x坐标的范围
plt.ylim((0,400)) # y坐标的范围
x = []
y = []
plt.ion()
for i in range(20):
x.append(i)
y.append(i*i)
#plt.clf()
plt.plot(x,y,'r')
plt.show()
#plt.pause(1)
#plt.ioff()