我想绘制具有vonmises分布的回归截距的置信区间。我发现可以使用vonmises分布ppf fom scipy.stats,但对我不起作用。
plots = {'02141592cc00000004': {
'data': [39794, 39996, 40400, 42218, 42420, 43026, 43632, 45450, 45652, 46258, 46460],
'dest': ['00001', '00002', '00003', '00004', '00005', '00006', '00007', '00008', '00009', '00010', '00011'],
'timestamp': [1549033439, 1549033441, 1549033443, 1549033453, 1549033454, 1549033458, 1549033462,
1549033477, 1549033479, 1549033483, 1549033484]}
}
f, ax = plt.subplots(len(plots), 1, figsize=(30, 20))
plt.suptitle('test _ With Clock Drift=[-30,+30]')
plt.subplots_adjust(hspace=2)
for i, item in enumerate(plots):
y = [x for _, x in sorted(zip(plots[item]['timestamp'], plots[item]['data']))]
x = sorted(plots[item]['timestamp'])
plt.plot(x, y)
plt.xlabel('data')
plt.ylabel('timestamp')
plt.show()
我需要一个看起来像这样的配置项,但我不知道该怎么做: