import matplotlib
as mpl
import matplotlib
.pyplot
as plt
import numpy
as np
mpl
.rcParams
["font.sans-serif"] = ["SimHei"]
mpl
.rcParams
["axes.unicode_minus"] = False
barSlices
= 12
theta
= np
.linspace
(0.0, 2*np
.pi
, barSlices
, endpoint
=False)
r
= 30*np
.random
.rand
(barSlices
)
plt
.polar
(theta
,r
,
color
= "chartreuse",
linewidth
= 2,
marker
= "*",
mfc
= "b",
ms
= 10)
plt
.show
()
转载请注明原文地址:https://blackberry.8miu.com/read-819.html