Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Milestone
Description
In this example the errorbars do not align with the theta of bar. I posted this as a question atstackoverflow, and maybe the answer could be useful. Surely, this should not be default behavior though.
Example non-working code:
from numpy import *from matplotlib import pyplot as pyr=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/16fig = 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()