Browse Source

examples: remove irrelevant "execute_result" output from plotting cells

https://ipython.org/ipython-doc/stable/notebook/nbformat.html#execute-result
Fabian Peter Hammerle 3 years ago
parent
commit
92d85c562b

+ 1 - 11
examples/ashs.ipynb

@@ -1124,16 +1124,6 @@
      },
      "metadata": {},
      "output_type": "display_data"
-    },
-    {
-     "data": {
-      "text/plain": [
-       "<matplotlib.axes._subplots.AxesSubplot at 0x7fb6ca200208>"
-      ]
-     },
-     "execution_count": 7,
-     "metadata": {},
-     "output_type": "execute_result"
     }
    ],
    "source": [
@@ -1148,7 +1138,7 @@
     "seaborn.barplot(data=volume_frame.sort_values('subfield_hemisphere'),\n",
     "                x='subfield_hemisphere',\n",
     "                y='volume_mm^3',\n",
-    "                hue='correction')"
+    "                hue='correction');"
    ]
   }
  ],

+ 2 - 12
examples/compare_ashs_freesurfer_hipposf.ipynb

@@ -472,7 +472,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": 6,
    "metadata": {},
    "outputs": [
     {
@@ -1266,16 +1266,6 @@
      },
      "metadata": {},
      "output_type": "display_data"
-    },
-    {
-     "data": {
-      "text/plain": [
-       "Text(0.5, 1.0, 'Hippocampal Subfield Volumes of Subject bert')"
-      ]
-     },
-     "execution_count": 7,
-     "metadata": {},
-     "output_type": "execute_result"
     }
    ],
    "source": [
@@ -1289,7 +1279,7 @@
     "                     y='volume_mm^3',\n",
     "                     hue='segmentation_mode')\n",
     "ax.set_xticklabels(ax.get_xticklabels(), rotation=60)\n",
-    "ax.set_title('Hippocampal Subfield Volumes of Subject {}'.format(SUBJECT))"
+    "ax.set_title('Hippocampal Subfield Volumes of Subject {}'.format(SUBJECT));"
    ]
   }
  ],

+ 2 - 22
examples/freesurfer_hipposf.ipynb

@@ -1173,16 +1173,6 @@
      },
      "metadata": {},
      "output_type": "display_data"
-    },
-    {
-     "data": {
-      "text/plain": [
-       "<matplotlib.legend.Legend at 0x7f04334ae4a8>"
-      ]
-     },
-     "execution_count": 8,
-     "metadata": {},
-     "output_type": "execute_result"
     }
    ],
    "source": [
@@ -1195,7 +1185,7 @@
     "                     y='volume_mm^3',\n",
     "                     hue='segmentation_mode')\n",
     "ax.set_title('Hippocampal Volume of Subject {}'.format(SUBJECT))\n",
-    "ax.legend(loc='lower right')"
+    "ax.legend(loc='lower right');"
    ]
   },
   {
@@ -1994,16 +1984,6 @@
      },
      "metadata": {},
      "output_type": "display_data"
-    },
-    {
-     "data": {
-      "text/plain": [
-       "Text(0.5, 1.0, 'Hippocampal Subfield Volumes of Subject bert\\nLeft Hemisphere')"
-      ]
-     },
-     "execution_count": 9,
-     "metadata": {},
-     "output_type": "execute_result"
     }
    ],
    "source": [
@@ -2016,7 +1996,7 @@
     "                     y='volume_mm^3',\n",
     "                     hue='segmentation_mode')\n",
     "ax.set_xticklabels(ax.get_xticklabels(), rotation=60)\n",
-    "ax.set_title('Hippocampal Subfield Volumes of Subject {}\\nLeft Hemisphere'.format(SUBJECT))"
+    "ax.set_title('Hippocampal Subfield Volumes of Subject {}\\nLeft Hemisphere'.format(SUBJECT));"
    ]
   }
  ],