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

时间:2016-01-27 01:45:06

标签: python pcap plotly

我有一个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')

任何线索?

0 个答案:

没有答案