Matplotlib的使用

import matplotlib.pyplot as plt import numpy as np x = np.linspace(-3,3,50) y1 = x*2+1 y2 = x**2 plt.figure() l1, = plt.plot(x,y1,label='up') l2, = plt.plot(x,y2,color='r',linewidth=1.0,linestyle='-
相關文章
相關標籤/搜索