From 8b4b6b69332f0978cc5d3ed7a7fe0b4ee6e45442 Mon Sep 17 00:00:00 2001 From: napakalas Date: Wed, 22 Mar 2023 14:03:56 +1300 Subject: [PATCH] adjusted ax.view_init arguments so it can works with the new matplotlib --- tutorial-1/SPARC-tutorial.ipynb | 13 +++---------- tutorial-2/SPARC-tutorial.ipynb | 12 ++---------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/tutorial-1/SPARC-tutorial.ipynb b/tutorial-1/SPARC-tutorial.ipynb index 69e4cdb..de85035 100644 --- a/tutorial-1/SPARC-tutorial.ipynb +++ b/tutorial-1/SPARC-tutorial.ipynb @@ -56,14 +56,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install pandas\n", - "!pip install openpyxl\n", - "!pip install ipywidgets\n", - "!pip install numpy\n", - "!pip install numpy-stl\n", - "!pip install matplotlib\n", - "!pip install ipympl\n", - "!pip install tqdm" + "!pip install -r requirements.txt" ] }, { @@ -557,7 +550,7 @@ " ax.axis('off')\n", "\n", " # Show ventral surface and plot projected neurons.\n", - " ax.view_init(10, -57, 'y')\n", + " ax.view_init(elev=10, azim=-57, vertical_axis='y')\n", " plt.show()\n", "\n", "efferent=Checkbox(value=True, description=\"efferent\")\n", @@ -601,7 +594,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.4" + "version": "3.9.4" } }, "nbformat": 4, diff --git a/tutorial-2/SPARC-tutorial.ipynb b/tutorial-2/SPARC-tutorial.ipynb index 7cb7948..5bf5bfd 100644 --- a/tutorial-2/SPARC-tutorial.ipynb +++ b/tutorial-2/SPARC-tutorial.ipynb @@ -55,15 +55,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install pandas\n", - "!pip install openpyxl\n", - "!pip install ipywidgets\n", - "!pip install numpy\n", - "!pip install numpy-stl\n", - "!pip install matplotlib\n", - "!pip install ipympl\n", - "!pip install scipy\n", - "!pip install tqdm" + "!pip install -r requirements.txt" ] }, { @@ -507,7 +499,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.4" + "version": "3.9.4" } }, "nbformat": 4,