Matplotlib作图的基本代码
Matplotlib作图的基本代码
import numpy as np
import matplotlib.pyplot as plt #导入Matplotlib
x = np.linspace(0,10,1000)
y = np.sin(x) + 1
z = np.cos(x**2) + 1
plt.figure(figsize=(8,4)) #设置图像大小
plt.plot(x,y...
原创
2019-07-20 18:41:21 ·
336 阅读 ·
0 评论