From 7f50aee83cd5749735b7a6fe67ff970dbeea5507 Mon Sep 17 00:00:00 2001 From: Ali-7800 <47090295+Ali-7800@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:32:46 -0500 Subject: [PATCH 1/3] ffmpeg and seaborn-whitegrid issues --- examples/Binder/2_Slithering_Snake.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/Binder/2_Slithering_Snake.ipynb b/examples/Binder/2_Slithering_Snake.ipynb index d0dbc3b3..d5194e35 100644 --- a/examples/Binder/2_Slithering_Snake.ipynb +++ b/examples/Binder/2_Slithering_Snake.ipynb @@ -25,7 +25,8 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install \"pyelastica[examples,docs]\"" + "!pip install \"pyelastica[examples,docs]\"\n" + "!conda install -c conda-forge ffmpeg -y" ] }, { @@ -629,7 +630,7 @@ " ax.set_xlim([0 - margin, 3 + margin])\n", " ax.set_ylim([-1.5 - margin, 1.5 + margin])\n", " with writer.saving(fig, video_name, dpi=100):\n", - " with plt.style.context(\"seaborn-whitegrid\"):\n", + " with plt.style.context(\"seaborn-v0_8-whitegrid\"):\n", " for time in range(1, len(t), step):\n", " rod_lines_2d.set_xdata(positions_over_time[time][2])\n", " rod_lines_2d.set_ydata(positions_over_time[time][0])\n", @@ -695,7 +696,7 @@ " linewidth=3,\n", " )[0]\n", " with writer.saving(fig, video_name, dpi=100):\n", - " with plt.style.context(\"seaborn-whitegrid\"):\n", + " with plt.style.context(\"seaborn-v0_8-whitegrid\"):\n", " for time in range(1, len(t), step):\n", " rod_lines_3d.set_xdata(positions_over_time[time][2])\n", " rod_lines_3d.set_ydata(positions_over_time[time][0])\n", From bc19d75d7675476be21711dbd97105eec6268998 Mon Sep 17 00:00:00 2001 From: Ali-7800 <47090295+Ali-7800@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:33:02 -0500 Subject: [PATCH 2/3] Update 2_Slithering_Snake.ipynb --- examples/Binder/2_Slithering_Snake.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Binder/2_Slithering_Snake.ipynb b/examples/Binder/2_Slithering_Snake.ipynb index d5194e35..a1d6e40e 100644 --- a/examples/Binder/2_Slithering_Snake.ipynb +++ b/examples/Binder/2_Slithering_Snake.ipynb @@ -25,7 +25,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install \"pyelastica[examples,docs]\"\n" + "!pip install \"pyelastica[examples,docs]\"" "!conda install -c conda-forge ffmpeg -y" ] }, From 844ebc38aebf278bb4b83cb265cc1a8af202866b Mon Sep 17 00:00:00 2001 From: Ali-7800 <47090295+Ali-7800@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:33:30 -0500 Subject: [PATCH 3/3] Update 2_Slithering_Snake.ipynb --- examples/Binder/2_Slithering_Snake.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Binder/2_Slithering_Snake.ipynb b/examples/Binder/2_Slithering_Snake.ipynb index a1d6e40e..3ec91b97 100644 --- a/examples/Binder/2_Slithering_Snake.ipynb +++ b/examples/Binder/2_Slithering_Snake.ipynb @@ -25,7 +25,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install \"pyelastica[examples,docs]\"" + "!pip install \"pyelastica[examples,docs]\"\n", "!conda install -c conda-forge ffmpeg -y" ] },