Skip to content

Commit

Permalink
Merge pull request #352 from Ali-7800/binder-snake-fix
Browse files Browse the repository at this point in the history
Binder Snake Ffmpeg Seaborn-whitegrid Issues
  • Loading branch information
armantekinalp authored Mar 27, 2024
2 parents c3d8ec0 + 844ebc3 commit 250ff3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/Binder/2_Slithering_Snake.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 250ff3b

Please sign in to comment.