Skip to content

Instantly share code, notes, and snippets.

@erikbern
Created September 22, 2020 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikbern/0509a6f22fd0927f07ef48908a700f43 to your computer and use it in GitHub Desktop.
Save erikbern/0509a6f22fd0927f07ef48908a700f43 to your computer and use it in GitHub Desktop.
import random
import numpy
from matplotlib import pyplot
rs = numpy.random.randn(1000)
xs = rs[1:-1] - rs[:-2]
ys = rs[2:] - rs[1:-1]
pyplot.scatter(xs, ys)
pyplot.show()
@erikbern
Copy link
Author

Plots this:

image

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