Skip to content

Instantly share code, notes, and snippets.

@iankronquist
Last active August 29, 2015 14:04
Show Gist options
  • Save iankronquist/620c5508ad986f320d92 to your computer and use it in GitHub Desktop.
Save iankronquist/620c5508ad986f320d92 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
t = np.linspace(0,10,1000)
x = 3.9 * (np.sin(t)**3)
y = -1 + (3 * np.cos(t)) - (1.2 * np.cos(2*t)) - (0.6 * np.cos(3*t)) - (0.2 * np.cos(4 * t))
plt.plot(x, y, 'r')
plt.axis('equal')
plt.fill_between(x,y, color='red')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment