import matplotlib.pyplot as plt
import numpy as np
x = np.arange(20)
y = x**2
plt.plot(x, y)
在jupyter notebook中使用matplotlib画图出现这个错误,修正方法:
sudo pip install matplotlib==2.2.0
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(20)
y = x**2
plt.plot(x, y)
在jupyter notebook中使用matplotlib画图出现这个错误,修正方法:
sudo pip install matplotlib==2.2.0