如何规划一个风玫瑰酒吧的地块?

2024-04-28 17:06:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我制作了以下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


Tags: ofthetoinplotnppibar