Commit cc56092c authored by Fabian Neumann's avatar Fabian Neumann
Browse files

T5-3: fix imports

parent b7ea940f
...@@ -85,12 +85,13 @@ ...@@ -85,12 +85,13 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"#make the code as Python 3 compatible as possible\n", "#make the code as Python 3 compatible as possible\n",
"from __future__ import print_function, division, absolute_import\n", "#from __future__ import print_function, division, absolute_import\n",
"import pypsa\n", "import pypsa\n",
"import numpy as np\n", "import numpy as np\n",
"import pandas as pd\n", "import pandas as pd\n",
"import os\n", "import os\n",
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
"import cartopy.crs as ccrs\n",
"plt.rcParams['figure.dpi']= 400\n", "plt.rcParams['figure.dpi']= 400\n",
"plt.style.use('ggplot')\n", "plt.style.use('ggplot')\n",
"%matplotlib inline" "%matplotlib inline"
...@@ -338,14 +339,14 @@ ...@@ -338,14 +339,14 @@
" n_rows_g = n_graphs_g // n_cols_g\n", " n_rows_g = n_graphs_g // n_cols_g\n",
"else:\n", "else:\n",
" n_rows_g = n_graphs_g // n_cols_g + 1\n", " n_rows_g = n_graphs_g // n_cols_g + 1\n",
" \n",
"fig, axes = plt.subplots(nrows=n_rows_g, ncols=n_cols_g,\n",
" figsize=(width_factor*n_cols_g,height_factor*n_rows_g),\n",
" subplot_kw={\"projection\":ccrs.PlateCarree()})\n",
"\n", "\n",
"width_factor = 4\n", "width_factor = 4\n",
"height_factor = 4\n", "height_factor = 4\n",
"\n", "\n",
"fig, axes = plt.subplots(nrows=n_rows_g, ncols=n_cols_g,\n",
" figsize=(width_factor*n_cols_g,height_factor*n_rows_g),\n",
" subplot_kw={\"projection\":ccrs.PlateCarree()})\n",
"\n",
"for i,tech in enumerate(techs):\n", "for i,tech in enumerate(techs):\n",
" i_row = i // n_cols_g\n", " i_row = i // n_cols_g\n",
" i_col = i % n_cols_g\n", " i_col = i % n_cols_g\n",
...@@ -450,7 +451,7 @@ ...@@ -450,7 +451,7 @@
"\n", "\n",
"fig, ax = plt.subplots(figsize=(16,8))\n", "fig, ax = plt.subplots(figsize=(16,8))\n",
"\n", "\n",
"p_by_carrier.plot(\n", "p_by_carrier_gw.plot(\n",
" kind=\"area\",\n", " kind=\"area\",\n",
" ax=ax,\n", " ax=ax,\n",
" linewidth=0,\n", " linewidth=0,\n",
......
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