Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
esm-course
esm-tutorials
Commits
cc56092c
Commit
cc56092c
authored
Jun 27, 2019
by
Fabian Neumann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T5-3: fix imports
parent
b7ea940f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
tutorial-4/worksheet/sheet04.pdf
tutorial-4/worksheet/sheet04.pdf
+0
-0
tutorial-5/notebooks/tutorial-5-task-3.ipynb
tutorial-5/notebooks/tutorial-5-task-3.ipynb
+7
-6
No files found.
tutorial-4/worksheet/sheet04.pdf
View file @
cc56092c
No preview for this file type
tutorial-5/notebooks/tutorial-5-task-3.ipynb
View file @
cc56092c
...
...
@@ -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",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment