import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-1,1,50)
#y = 2*x+1
y = x**2
plt.plot(x,y)
plt.show()
标签:基本,plot,01,用法,plt,np,import
From: https://www.cnblogs.com/lyc2001/p/17080696.html
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-1,1,50)
#y = 2*x+1
y = x**2
plt.plot(x,y)
plt.show()
标签:基本,plot,01,用法,plt,np,import
From: https://www.cnblogs.com/lyc2001/p/17080696.html