Matplotlib(基础)
import matplotlib.pyplot as plt
plt.plot(x, y, color=, marker=, linestyle=, alpha=) # 线图



plt.scatter() # 点图

plt.hist() # 柱状图

plt.subplots() # 子图

plt.subplot() # 子图

plt.xlabel() # x轴标签 plt.ylabel() # y轴标签
plt.title() # 标题 plt.xticks() # x轴替换
plt.text() # 文本 plt.grid() # 网格


df.plot() # 线图


df.plot(kind='scatter') # 点图


df.plot(kind='hist') # 柱状图

df.plot(kind='box') # 箱图


df.plot(kind='bar') # 条形图



浙公网安备 33010602011771号