#!/usr/bin/python
import matplotlib.pyplot as plt
def plot_pic():
x = range(6)#x轴
y = [i ** 3 + i * 10 + 7 for i in x]#Y轴值
plt.plot(x,y)#此处x轴可以缺省,默认为0~N-1
plt.show()
import matplotlib.pyplot as plt
import numpy as np
def mulitplot_pic():#多条折线,三条(x,x*3),(x,x**2),(x,x*30)
x = np.arange(1,10)
plt.plot(x, x * 3, x, x**2,x,x*30)#或者plt.plot();plt.plot()
plt.show()