```python
import matplotlib.pyplot as plt
import numpy as np
# from scipy import stats
%matplotlib inline
```

## Heart curve
http://mathworld.wolfram.com/HeartCurve.html
$$\begin{align}
x&=16sin^3(t)\\
y&=13cos(t)-5cos(2t)-2cos(3t)-cos(4t)
\end{align}$$


```python
def heart():
    # http://mathworld.wolfram.com/HeartCurve.html
    t = np.linspace(0, 2 * np.pi, 360)
    # print(t)
    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.plot(x, y)
    plt.plot(x + 10, y)
    plt.plot(x + 20, y)
    plt.show()

def heart2():
    # http://mathworld.wolfram.com/HeartCurve.html
    t = np.linspace(0, 2 * np.pi, 360)
    # print(t)
    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)
    r = np.linspace(.1, 1, 10)
    plt.text(0, 0, "I \u2764 Python")

    for n in r:
        # plt.plot(x + n, y)
        # plt.plot(x * n, y)
        # plt.plot(x * n / 5, y)
        plt.plot(x * n / 5, y * n / 5)
    plt.show()
```


```python
heart()
```


```python
heart2()
```


```python

```

8ae0a1ff975b984814382d84d964e699d7b56c0d
ipynb
Jupyter Notebook
src/viz_scatter_heart.ipynb
prasertcbs/JupyterLab
c9e74c5950ba61d049140358d41ae113dd848466
MIT
src/viz_scatter_heart.ipynb
prasertcbs/JupyterLab
c9e74c5950ba61d049140358d41ae113dd848466
MIT
src/viz_scatter_heart.ipynb
prasertcbs/JupyterLab
c9e74c5950ba61d049140358d41ae113dd848466
MIT
Qwen/Qwen-72B
1. YES
2. YES