PLT.CATTER Warna Latar Belakang
# 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()
Filthy Falcon