Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit df98aa9

Browse files
committed
Update chapter 14 code
1 parent 9f16c7b commit df98aa9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎chapter14_graphgeo/02_airports.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Drawing airports and flight routes with NetworkX"
7+
"# Drawing flight routes with NetworkX"
88
]
99
},
1010
{
@@ -320,6 +320,7 @@
320320
"fig, ax = plt.subplots(1, 1, figsize=(12, 8),\n",
321321
" subplot_kw=dict(projection=crs))\n",
322322
"ax.coastlines()\n",
323+
"# Extent of continental US.\n",
323324
"ax.set_extent([-128, -62, 20, 50])\n",
324325
"nx.draw_networkx(sg, ax=ax,\n",
325326
" font_size=16,\n",

‎chapter14_graphgeo/03_dag.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
}
190190
],
191191
"source": [
192-
"nx.draw_shell(graph, with_labels=True,\n",
192+
"nx.draw_shell(graph,\n",
193193
" node_color=colors,\n",
194194
" cmap=plt.cm.Blues,\n",
195195
" font_size=8,\n",

‎chapter14_graphgeo/06_gis.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
],
9595
"source": [
9696
"fig, ax = plt.subplots(1, 1, figsize=(6, 8),\n",
97-
" subplot_kw=dict(projection=crs))\n",
97+
" subplot_kw=dict(projection=crs))\n",
9898
"draw_africa(ax)"
9999
]
100100
},

‎chapter14_graphgeo/07_gps.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
"# from https://stackoverflow.com/a/8859667/1595060\n",
9898
"EARTH_R = 6372.8\n",
9999
"\n",
100-
"\n",
101100
"def geocalc(lat0, lon0, lat1, lon1):\n",
102101
" \"\"\"Return the distance (in km) between two points in\n",
103102
" geographical coordinates.\"\"\"\n",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /