📜  plt.scatter 背景颜色 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.574000             🧑  作者: Mango

代码示例2
import matplotlib.pyplot as plt

a = random(100)*10
b = range(100)
fig = plt.figure(1)
ax = fig.add_subplot(111, axisbg='black')
ax.scatter(a,b)
fig.canvas.draw()