Files
notes_estom/Python/matplotlab/gallery/pyplots/pyplot_simple.md
2020-09-26 22:03:11 +08:00

706 B

Pyplot 简单图(Simple)

A most simple plot, where a list of numbers is plotted against their index.

import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()

简单图示例

参考

此示例显示了以下函数、方法、类和模块的使用:

import matplotlib
matplotlib.pyplot.plot
matplotlib.pyplot.ylabel
matplotlib.pyplot.show

下载这个示例