import matplotlib.pyplot as plt
import numpy as np
# Parámetros para la ecuación del corazón
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)
# Crear la figura del corazón
plt.plot(x, y, label='Corazón')
# Mostrar la figura
plt.axis('equal')
plt.legend()
plt.show()
To embed this project on your website, copy the following code and paste it into your website's HTML: