|
25 | 25 | "metadata": {}, |
26 | 26 | "outputs": [], |
27 | 27 | "source": [ |
28 | | - "!pip install \"pyelastica[examples,docs]\"" |
| 28 | + "!pip install \"pyelastica[examples,docs]\"\n", |
| 29 | + "!conda install -c conda-forge ffmpeg -y" |
29 | 30 | ] |
30 | 31 | }, |
31 | 32 | { |
|
629 | 630 | " ax.set_xlim([0 - margin, 3 + margin])\n", |
630 | 631 | " ax.set_ylim([-1.5 - margin, 1.5 + margin])\n", |
631 | 632 | " with writer.saving(fig, video_name, dpi=100):\n", |
632 | | - " with plt.style.context(\"seaborn-whitegrid\"):\n", |
| 633 | + " with plt.style.context(\"seaborn-v0_8-whitegrid\"):\n", |
633 | 634 | " for time in range(1, len(t), step):\n", |
634 | 635 | " rod_lines_2d.set_xdata(positions_over_time[time][2])\n", |
635 | 636 | " rod_lines_2d.set_ydata(positions_over_time[time][0])\n", |
|
695 | 696 | " linewidth=3,\n", |
696 | 697 | " )[0]\n", |
697 | 698 | " with writer.saving(fig, video_name, dpi=100):\n", |
698 | | - " with plt.style.context(\"seaborn-whitegrid\"):\n", |
| 699 | + " with plt.style.context(\"seaborn-v0_8-whitegrid\"):\n", |
699 | 700 | " for time in range(1, len(t), step):\n", |
700 | 701 | " rod_lines_3d.set_xdata(positions_over_time[time][2])\n", |
701 | 702 | " rod_lines_3d.set_ydata(positions_over_time[time][0])\n", |
|
0 commit comments