Skip to content

Instantly share code, notes, and snippets.

@blaylockbk
Created July 7, 2020 17:39
Show Gist options
  • Save blaylockbk/3190e0c21e11b5a25e09731c7ae46ad3 to your computer and use it in GitHub Desktop.
Save blaylockbk/3190e0c21e11b5a25e09731c7ae46ad3 to your computer and use it in GitHub Desktop.
# I like this example from the matplotlib cheatsheets
# https://github.com/matplotlib/cheatsheets
X = np.random.normal(-1, 1, 10_000)
Y = np.random.normal(-1, 1, 10_000)
plt.scatter(X, Y, 50, color="0.1", lw=2)
plt.scatter(X, Y, 50, color="1.0", lw=0)
plt.scatter(X, Y, 40, 'C1', lw=0, alpha=.1)
plt.gca().set_facecolor('.95')
@blaylockbk
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment