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
a
= np
.random
.randn
(100)
b
= np
.random
.randn
(100)
plt
.scatter
(a
,b
,s
=np
.power
(10*a
+20*b
,2),
c
=np
.random
.rand
(100),
cmap
=mpl
.cm
.RdYlBu
,
marker
="o")
plt
.show
()
转载请注明原文地址:https://blackberry.8miu.com/read-858.html