2
matplotlib에 오차 막대가있는 극 막대 막대를 작성하려고합니다. 다음 코드를 사용할 때 모든 오류 막대는 가로 맞춤을 가지며 막대가 90 또는 270 도의 경우에 해당하지 않는 한 잘못 표시됩니다.극좌표 플롯 오차 막대가 matplotlib에서 각도와 함께 회전하지 않습니다.
from numpy import *
from matplotlib import pyplot as py
r=zeros([16])
err=zeros([16])
for i in range(16):
r[i]=random.randint(400,600)
err[i]=random.randint(20,50)
theta=arange(0,2*pi,2*pi/16)
width = pi*2/16
fig = py.figure(figsize=(8,8))
ax = fig.add_axes([0.1, 0.1, 0.75, 0.79], polar=True)
bars = ax.bar(theta+pi/16, r, width=width, bottom=0.0,yerr=err)
ax.set_ylim(0,700)
py.show()
어떻게 오차 막대가 계정에 각 줄의 세타를 취할 얻으려면?