Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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)
Copy link

erikbern commented Sep 22, 2020

Plots this:


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