diff --git a/docs/notebooks/ex01_specimen_amplitudes.ipynb b/docs/notebooks/ex01_specimen_amplitudes.ipynb index d777b96..74ca5d0 100644 --- a/docs/notebooks/ex01_specimen_amplitudes.ipynb +++ b/docs/notebooks/ex01_specimen_amplitudes.ipynb @@ -28,11 +28,16 @@ "metadata": {}, "outputs": [], "source": [ + "import sys\n", "import felupe as fem\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "import termtables as tt\n", "from pypardiso import spsolve\n", + "import pyvista as pv\n", + "\n", + "if \"google.colab\" in sys.modules:\n", + " pv.start_xvfb()\n", "\n", "import fiberreinforcedrubber as frr\n", "\n", @@ -186,11 +191,8 @@ "view = fem.ViewMesh(mesh)\n", "plotter = view.plot(\n", " notebook=True,\n", - " theme=\"document\",\n", " add_axes=False,\n", - " edge_color=\"black\",\n", " color=\"lightgrey\",\n", - " line_width=4,\n", ")\n", "plotter.show(jupyter_backend=\"static\")" ] @@ -213,10 +215,9 @@ "view = fem.ViewMesh(fem.mesh.concatenate([fibers_1, fibers_2]))\n", "plotter = view.plot(\n", " notebook=True,\n", - " theme=\"document\",\n", " add_axes=False,\n", " color=\"black\",\n", - " line_width=4,\n", + " line_width=2,\n", ")\n", "plotter.show(jupyter_backend=\"static\")" ] @@ -420,9 +421,9 @@ " view = fem.ViewSolid(field)\n", " plotter = view.plot(\n", " notebook=True,\n", - " theme=\"document\",\n", " show_edges=False,\n", " add_axes=False,\n", + " color=\"lightgrey\",\n", " )\n", " plotter.add_axes(label_size=(0.06, 0.06))\n", "\n", @@ -441,6 +442,7 @@ " plotter=plotter,\n", " line_width=3,\n", " add_axes=False,\n", + " color=\"lightgrey\",\n", " )\n", " fiberplotter = fiberview1.plot(\n", " \"Normal Force (Range) per Undeformed Area (Fibre) in MPa\",\n", @@ -452,9 +454,18 @@ " above_color=\"lightgrey\",\n", " line_width=3,\n", " add_axes=False,\n", + " color=\"lightgrey\",\n", " )\n", " fiberplotter.show(jupyter_backend=\"static\")" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "f7289d31-536e-46c1-afa5-d1aee857ba1e", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -473,7 +484,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.8" + "version": "3.11.5" } }, "nbformat": 4,