极区图

import matplotlib.pyplot as plt
import numpy as np
N=8
theta = np.arange(0.,2*np.pi,2*np.pi/N)
radii = np.array([4,7,5,3,1,5,6,7])
plt.axes([0.025,0.025,0.95,0.95],polar=True)
colors = np.array(['lightgreen','darkred','navy','brown','violet','plum','yellow','darkgreen'])
bars=plt.bar(theta,radii,width=(2*np.pi/N),bottom=0.0,color=colors)
plt.show()

 

 

posted @ 2020-06-14 10:16  逐梦无惧_数据分析  阅读(373)  评论(0编辑  收藏  举报