Commit 809870fe authored by Parish, Chad's avatar Parish, Chad
Browse files

Replace vendor_handler.ipynb

parent 516db68b
......@@ -20,7 +20,15 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"3.0.1\n"
]
}
],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
......@@ -28,6 +36,7 @@
"import os\n",
"os.chdir('./vendor')\n",
"\n",
"\n",
"# this is not a standard Anoconda Python package, but it's very useful.\n",
"try:\n",
" from matplotlib_scalebar.scalebar import ScaleBar\n",
......@@ -37,6 +46,29 @@
" scalebar_imported = False"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import matplotlib\n",
"\n",
"if matplotlib.__version__.split('.')[0] < '3':\n",
" raise ImportError('Requires matplotlib 3.0.0 or higher')"
]
},
{
"cell_type": "markdown",
"metadata": {},
......@@ -286,7 +318,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 8,
"metadata": {},
"outputs": [
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment