数据分析~matplotlib画图
程序员文章站
2022-03-18 23:34:05
...
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
frame01=pd.DataFrame([[2,4,8,16,32,64],[3,5,12,24,48,96],[5,10,15,20,25,30],[1,3,5,7,9,11],[16,8,4,2,1,0.5]],index=range(0,100,20),columns=['A','B','C','D','D','E'])
pic,subplot=plt.subplots()
frame01.plot(kind='line',ax=subplot,subplots=False,layout=False,logx=True,xlim=[0,100])
plt.show()
上一篇: ps换头像教程详细过程