# plt background color
# make data
import matplotlib.pyplot as plt
from sklearn.datasets import make_blobs
X, y = make_blobs(n_samples=50, n_features=2, random_state=0)
y = y.reshape((y.shape[0], 1))
# plot
plt.style.use('dark_background')
plt.scatter(X[:,0], X[:, 1], c=y, cmap='summer')
plt.show()
X = [0, 1, 2]
Y = [0, 1, 2]
Z = [0, 1, 2]
C = np.array([[255, 0, 0], [0, 255, 0], [0, 0, 255]])
fig = plt.figure()
ax = fig.add_subplot(111, projection = '3d')
ax.scatter(X, Y, Z, c = C/255.0)
plt.show()
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()