python
import numpy as np import matplotlib.pyplot as plt t = np.linspace(0, 2 * np.pi, 1000) x = 16 * np.sin(t) ** 3 y = ( 13 * np.cos(t) - 5 * np.cos(2 * t) - 2 * np.cos(3 * t) - np.cos(4 * t) ) plt.figure(figsize=(7, 7)) plt.plot(x, y, color="red", linewidth=2.5) plt.fill(x, y, color="red", alpha=0.15) plt.title("Heart Curve ❤️") plt.axis("equal") plt.axis("off") plt.show()
commit 134348a