diff --git a/book/week_15/session/intro.ipynb b/book/week_15/session/intro.ipynb index 81ad694..4c95277 100644 --- a/book/week_15/session/intro.ipynb +++ b/book/week_15/session/intro.ipynb @@ -232,7 +232,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": { "tags": [ "remove-cell" @@ -370,7 +370,7 @@ " \n", " \n", " \n", - " 2024-12-10T18:11:14.631984\n", + " 2024-12-10T18:14:56.560515\n", " image/svg+xml\n", " \n", " \n", @@ -414,23 +414,23 @@ "C 77.808805 259.6877 108.754045 272.505637 141.01632 272.505637 \n", "L 141.01632 272.505637 \n", "z\n", - "\" clip-path=\"url(#pabe5ee446c)\" style=\"fill: none; stroke: #000000; stroke-linejoin: miter\"/>\n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #000000; stroke-linejoin: miter\"/>\n", " \n", " \n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -476,11 +476,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -522,11 +522,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -563,11 +563,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -615,11 +615,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -676,11 +676,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -712,11 +712,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -769,16 +769,16 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -802,11 +802,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -821,11 +821,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -840,11 +840,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -858,11 +858,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -876,11 +876,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -894,11 +894,11 @@ " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #b0b0b0; stroke-width: 0.8; stroke-linecap: square\"/>\n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -931,9 +931,9 @@ " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #1f77b4; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", - " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #ff7f0e; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", - " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #2ca02c; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #d62728; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", - " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #9467bd; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", - " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #8c564b; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", - " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #000000; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #000000; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #000000; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", - " \n", " \n", - " \n", - " \n", + " \n", + " \n", " \n", " \n", " \n", " \n", - " \n", - " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #000000; stroke-width: 1.5; stroke-linecap: square\"/>\n", + " \n", + " \n", " \n", " \n", " \n", " \n", + "\" clip-path=\"url(#p44ef84e8fe)\" style=\"fill: none; stroke: #000000; stroke-width: 1.5; stroke-linecap: square\"/>\n", " \n", " \n", " \n", " \n", " \n", - " \n", + " \n", " \n", " \n", " \n", @@ -1121,7 +1121,7 @@ "%config InlineBackend.figure_formats = ['svg']\n", "\n", "t, F, T, L, d = sym.symbols('t F T L d')\t\n", - " \n", + "\n", "d = sym.nsimplify(0.25) / sym.sqrt(sym.pi)\n", "t = sym.nsimplify(0.010)\n", "F = 4000\n", @@ -1179,7 +1179,10 @@ "plt.plot(sigma,-tau,marker='o',color='black')\n", "plt.plot(sigma_xx,-tau_xy,marker='o',color='black')\n", "plt.plot([sigma_xx,sigma],[-tau_xy,-tau],color='black')\n", - "plt.gcf().patch.set_alpha(0);" + "plt.gcf().patch.set_alpha(0)\n", + "\n", + "# Save the figure with transparent background\n", + "plt.savefig('plot.svg', format='svg', transparent=True);" ] }, { diff --git a/book/week_15/session/intro_data/mohr.svg b/book/week_15/session/intro_data/mohr.svg index 6b69423..f4cfff9 100644 --- a/book/week_15/session/intro_data/mohr.svg +++ b/book/week_15/session/intro_data/mohr.svg @@ -1,12 +1,12 @@ - + - 2024-12-10T18:11:14.631984 + 2024-12-10T18:14:56.417241 image/svg+xml @@ -21,57 +21,58 @@ - - +" style="fill: none"/> - +" clip-path="url(#pf1b1690f0e)" style="fill: none; stroke: #000000; stroke-linejoin: miter"/> - + - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -366,7 +367,7 @@ L 271.79136 17.798437 - + - + - - + - + - + - + - + @@ -455,18 +456,18 @@ L 274.83264 226.886437 - + - + - + @@ -474,79 +475,79 @@ L 274.83264 188.870437 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - + + - + - - - + + - + - + - - - + + - + - - - + + - + - - - + + - + - + - + - - - + + - - - + + + - + - - - - - - + +