欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

数据分析~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()