我使用以下方法制作了以下windrose条形图:
thetas = ... # Thetas starts
props = ...
width = 2*np.pi/len(thetas) # Desired width of each bar in the bar plot
fig = plt.figure("pyplot_windrose_barplot",figsize=(10,10)) # Create a new figure
ax = plt.axes(polar="true") # Create a polar axis
b = plt.bar(thetas,props,width=width, align='center') # Windrose Bar Plot
ax.set_thetagrids(thetas*180./np.pi) # Show grid lines from 0 to 360 in increments of dtheta
ax.set_theta_zero_location("N") # Set 0 degrees to the top of the plot
ax.set_theta_direction(-1) # Switch to clockwise