hi,
I’m using polar bars to plot windroses. Since the 0.98.5 version i have
some issues with the plots.
The 0° bar is not displayed in the good way. This bar is
located between -0.26 radian and 0.26 radian but it is printed
counterclockwise.
It was working perfectly with matplotlib version 0.98.3. I just switched to
version 0.98.5 because of the NaN bug of the previous version.
Any idea how i could make it work again ?
Ty!!
from pylab import *
nb_secteur=12
fig = figure(2,figsize=(8,8))
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True,)
thetagrids([90,45,0,315,270,225,180,135],
labels=[“N”,“NE”,“E”,“SE”,“S”,“SO”,“O”,“NO”])
theta = arange(0.0-pi/nb_secteur, 2pi-pi/nb_secteur, 2pi/nb_secteur)
radii = [10.,20,10,5,3,4,3,4,6,4,2,9]
width = 2*pi/nb_secteur
bars = ax.bar(theta, radii, width=width, bottom=0.0 )
for r,bar in zip(radii, bars):
bar.set_facecolor( ‘blue’)
bar.set_alpha(0.3)
text(1,0.69,"%",transform = ax.transAxes)
show()