Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created November 12, 2023 00:19
Show Gist options
  • Save stephengruppetta/90c9501f4d6bf2e86385425e856ae4a5 to your computer and use it in GitHub Desktop.
Save stephengruppetta/90c9501f4d6bf2e86385425e856ae4a5 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-1, 1, 500)
X, Y = np.meshgrid(x, x)
ripple = np.sin((20 * X ** 2) + (20 * Y ** 2))
plt.imshow(ripple)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment