Commit cc56092c authored by Fabian Neumann's avatar Fabian Neumann

T5-3: fix imports

parent b7ea940f
......@@ -85,12 +85,13 @@
"outputs": [],
"source": [
"#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 numpy as np\n",
"import pandas as pd\n",
"import os\n",
"import matplotlib.pyplot as plt\n",
"import cartopy.crs as ccrs\n",
"plt.rcParams['figure.dpi']= 400\n",
"plt.style.use('ggplot')\n",
"%matplotlib inline"
......@@ -338,14 +339,14 @@
" n_rows_g = n_graphs_g // n_cols_g\n",
"else:\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",
"width_factor = 4\n",
"height_factor = 4\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",
" i_row = i // n_cols_g\n",
" i_col = i % n_cols_g\n",
......@@ -450,7 +451,7 @@
"\n",
"fig, ax = plt.subplots(figsize=(16,8))\n",
"\n",
"p_by_carrier.plot(\n",
"p_by_carrier_gw.plot(\n",
" kind=\"area\",\n",
" ax=ax,\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