diff --git a/explore_siren.ipynb b/explore_siren.ipynb index dec3b8cb..416af4df 100644 --- a/explore_siren.ipynb +++ b/explore_siren.ipynb @@ -363,9 +363,10 @@ " sum = sin_1 + sin_2\n", " \n", " fig, ax = plt.subplots(figsize=(16,2))\n", - " ax.plot(coords, sum)\n", - " ax.plot(coords, sin_1)\n", - " ax.plot(coords, sin_2)\n", + " ax.plot(coords, sum, label='Sum')\n", + " ax.plot(coords, sin_1, label='Sin 1')\n", + " ax.plot(coords, sin_2, label='Sin 2)\n", + " plt.legend(bbox_to_anchor=(1.1, 1))\n", " plt.title(\"Rational multiple\")\n", " plt.show()\n", " \n", @@ -374,9 +375,10 @@ " sum = sin_1 + sin_2\n", " \n", " fig, ax = plt.subplots(figsize=(16,2))\n", - " ax.plot(coords, sum)\n", - " ax.plot(coords, sin_1)\n", - " ax.plot(coords, sin_2)\n", + " ax.plot(coords, sum, label='Sum')\n", + " ax.plot(coords, sin_1, label='Sin 1')\n", + " ax.plot(coords, sin_2, label='Sin 2)\n", + " plt.legend(bbox_to_anchor=(1.1, 1))\n", " plt.title(\"Pseudo-irrational multiple\")\n", " plt.show()" ]