figure图像

import  numpy
from  matplotlib  import  pyplot
x=numpy.linspace(-3,3,50)
y1=2*x+1
y2=x**2

#创建第一个画布
pyplot.figure()   
pyplot.plot(x,y1)

#创减第二个画布
pyplot.figure(num='第一幅图',figsize=(5,5))
pyplot.plot(x,y2)
pyplot.plot(x,y1,color='red',linewidth=1,linestyle='--')

pyplot.show()
原文地址:https://www.cnblogs.com/luckiness/p/13152047.html