How to rotate WindRose plot?

355 views Asked by At

How can I rotate the Windrose plot and move the legend to avoid overlaying with the figure?

East should be on the opposite side.

Code and figure are below.

from windrose import WindroseAxes

ax = WindroseAxes.from_ax()
ax.bar(wind_almaty_angle.angle,wind_almaty_angle.rate, normed=True, bins=np.arange(0, 6, 1), cmap=cm.hot)
ax.set_legend(fontsize=12,loc='upper right')
ax.set_xticklabels(['N', 'NE', 'E', 'SE' , 'S', 'SW','W', 'NW'],fontsize=14)
ax.set_theta_zero_location('N')
plt.show()

Python windrose output

1

There are 1 answers

0
amelie PARK On

just remove

ax.set_theta_zero_location('N')

or put another direction.