Skip to content

Instantly share code, notes, and snippets.

@galenseilis
Last active March 2, 2023 05:47
Show Gist options
  • Save galenseilis/e987bdb1ccaf5bee17207250d4357f74 to your computer and use it in GitHub Desktop.
Save galenseilis/e987bdb1ccaf5bee17207250d4357f74 to your computer and use it in GitHub Desktop.
re 608110
import matplotlib.pyplot as plt
import numpy as np
m = 300
u1 = np.random.uniform(0.5, 4.5, size=m)
u2 = 2 / u1 + np.random.normal(scale=0.09, size=m)
plt.scatter(u1, u2)
plt.xlabel('u1')
plt.ylabel('u2')
plt.show()
@galenseilis
Copy link
Author

image

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