1. 画基本的图

import matplotlib.pyplot as plt

import numpy as np
x = np.linspace(-1,1,50)
y = 2*x+1
plt.plot(x,y)
plt.show()

python matplotlib 的用法

2.  figure 的用法


相关文章: