使用python获取wireshark信息的条形图

2024-03-29 00:17:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个pcap文件,我想在Python中将其可视化为条形图。在

我创建了一个条形图,但我无法得到任何信息。在

import matplotlib.pyplot as plt
import plotly.plotly as py
dictionary = plt.figure()
D = {u'Label0':26, u'Label1': 17, u'Label2':30}
plt.bar(range(len(D)), D.values(), align='center')
plt.xticks(range(len(D)), D.keys())
plot_url = py.plot_mpl(dictionary, filename='mpl-dictionary')

有什么线索吗?在


Tags: 文件pyimportdictionarylenplot可视化as