01基本用法

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()

image-20230131161607740

image-20230131161711011

posted @ 2023-01-31 20:31  不迷路的小孩  阅读(17)  评论(0编辑  收藏  举报