diff --git a/p06.ipynb b/p06.ipynb index c113152..ca18b7f 100644 --- a/p06.ipynb +++ b/p06.ipynb @@ -9,7 +9,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -22,7 +22,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -36,7 +36,7 @@ " \n", " \n", " \n", - " 2024-08-24T20:50:35.026896\n", + " 2024-08-24T21:47:44.690148\n", " image/svg+xml\n", " \n", " \n", @@ -1052,7 +1052,7 @@ "L 625.269357 390.12426 \n", "L 628.440639 390.862758 \n", "L 631.613427 391.600955 \n", - "\" clip-path=\"url(#p7c93f0089f)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", + "\" clip-path=\"url(#pb210f49ed7)\" style=\"fill: #ffffff; stroke: #ff0000\"/>\n", " \n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -7834,6 +7834,8 @@ "source": [ "import matplotlib.pyplot as plt\n", "from matplotlib import animation\n", + "from matplotlib import rc\n", + "rc('animation', html='jshtml')\n", "\n", "# First set up the figure, the axis, and the plot element we want to animate\n", "fig = plt.figure()\n", @@ -7869,11 +7871,18 @@ "outputs": [], "source": [ "# Use this for inline display with controls\n", - "anim\n", - "\n", + "anim" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "# Use this for inline display of movie\n", - "from IPython.display import HTML\n", - "HTML(anim.to_html5_video())" + "#from IPython.display import HTML\n", + "#HTML(anim.to_html5_video())" ] } ],