0

我想用以下代码绘制一个我在网站某处找到的非常基本的图表:

%matplotlib inline

import matplotlib.pyplot as plt
plt.plot([0, 1, 2, 5])
plt.show()

但它有这样的结果:

<Figure size 432x288 with 1 Axes>

而且不是一个漂亮的图表,出了什么问题?我确实在命令提示符下通过 pip 安装了 matplotlib。

4

0 回答 0