如何投射windrose条形图?

时间:2017-06-02 23:38:10

标签: python matplotlib 3d

我使用以下方法制作了以下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

enter image description here 如何在3D中将其转换为看起来像是从倾斜的角度看,如下图所示的指南针: enter image description here

0 个答案:

没有答案