I am creating windrose plots using the windrose.py module. I have correctly changed the bin sizes but want to change the yaxis (percentage) tick positions/ labels to: 0, 5, 10, 15, 20 using this code:
from windrose import WindroseAxes
fig = plt.figure()
rect=[0.1,0.1,0.8,0.8]
wAxes = WindroseAxes(fig,rect)
fig.add_axes(wAxes)
bins_Range = np.arange(0, 25, 2.5)
wAxes.bar(WindDir, WindSpd, normed=True,edgecolor='black',bins = bins_Range)
wAxes.set_ylim(0,20)
wAxes.yaxis.set_ticks(np.arange(0,20,5))
wAxes.legend(loc='lower left')
fig.savefig('WindRose.png')
This creates the plot but does not affect the percentage axis, it still produces plots with a y-axis scale dependent on the data. Any help much appreciated!