标签:lib image atp row import otl red alt nump
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()
标签:lib image atp row import otl red alt nump
原文地址:https://www.cnblogs.com/wei23/p/13123895.html