输入的是统计区域内的每日的所有告警汇总,然后处理后得到日期和每日的告警总数,两个方法来进行折线图展示,方法一是用pandas.plot直接画图,但是测试发现横轴不显示日期,纵轴不显示label,明天重点研究下。方法二是用matplot直接画图,这个不如pandas.plot方便,但暂时能满足要求,先记录下吧,明天重点重构下代码,研究下pandas.plot。
# -*- encoding=UTF-8 -*-
__author__ = 'wjj1982'
__date__ = '2019/8/10 20:45'
__product__ = 'PyCharm'
__filename__ = 'test'
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei']
filename1 = '6大营业厅告警统计_2019-08-05-14-55-19-019.xlsx'
filename2 = '6大营业厅告警统计_2019-08-06-17-37-28-028.xlsx'
filename3 = '6大营业厅告警统计_2019-08-07-10-13-29-029.xlsx'
filename4 = '6大营业厅告警统计_2019-08-08-20-15-40-040.xlsx'
filename5 = '6大营业厅告警统计_2019-08