Skip to content

Instantly share code, notes, and snippets.

Created Dec 20, 2020
What would you like to do?
import numpy as np
import matplotlib.pyplot as plt
rng = np.random.RandomState(0)
x = rng.randn(100)
y = rng.randn(100)
colors = rng.rand(100)
sizes = 1000 * rng.rand(100)
plt.scatter(x, y, c=colors, s=sizes, alpha=0.3,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment