matplotlib Basic Usage

General

import matplotlib
import matplotlib.pyplot as plt
# plt. ...
plt.grid(True)
plt.show()

Variation

bar

plt.bar(X, Y) # 1-D, 1-D

scatter

plt.scatter(X, Y, s=3) # 1-D, 1-D

3-D bar
https://www.jianshu.com/p/bb8…

    原文作者:Lycheeee
    原文地址: https://segmentfault.com/a/1190000013141675
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞