diff --git a/docs/calculus/ca_extra.ipynb b/docs/calculus/ca_extra.ipynb index 4c9cf7c..87a1d67 100644 --- a/docs/calculus/ca_extra.ipynb +++ b/docs/calculus/ca_extra.ipynb @@ -82,8 +82,12 @@ "xx, yy = np.meshgrid(x_, y_)\n", "\n", "fig, ax = plt.subplots()\n", - "cs1 = ax.contour(xx, yy, sp.lambdify((x, y), f, \"numpy\")(xx, yy), levels=20, cmap=\"RdBu_r\")\n", - "cs2 = ax.contour(xx, yy, sp.lambdify((x, y), g, \"numpy\")(xx, yy), levels=[136], colors=\"k\")\n", + "cs1 = ax.contour(\n", + " xx, yy, sp.lambdify((x, y), f, \"numpy\")(xx, yy), levels=20, cmap=\"RdBu_r\"\n", + ")\n", + "cs2 = ax.contour(\n", + " xx, yy, sp.lambdify((x, y), g, \"numpy\")(xx, yy), levels=[136], colors=\"k\"\n", + ")\n", "ax.clabel(cs1, inline=True, fontsize=10)\n", "ax.clabel(cs2, inline=True, fontsize=10)\n", "ax.spines[[\"left\", \"bottom\"]].set_position((\"data\", 0))\n", @@ -92,7 +96,7 @@ "ax.set_xlim(-15, 15)\n", "ax.set_ylim(-15, 15)\n", "ax.set_aspect(\"equal\")\n", - "plt.title(\"Contour plot of $f(x, y)$ with constraint $g(x) = 136$\", pad=20.)\n", + "plt.title(\"Contour plot of $f(x, y)$ with constraint $g(x) = 136$\", pad=20.0)\n", "plt.show()" ] }, @@ -377571,9 +377575,9 @@ } }, "text/html": [ - "