Skip to content

Commit

Permalink
Apply lint to notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
jongbinjung committed Oct 11, 2024
1 parent b4983d5 commit e1f4d9b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/polygon_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@
"metadata": {},
"outputs": [],
"source": [
"import h3\n",
"\n",
"import geopandas\n",
"import geodatasets\n",
"import contextily as cx\n",
"import geodatasets\n",
"import geopandas\n",
"import matplotlib.pyplot as plt\n",
"\n",
"import h3\n",
"\n",
"\n",
"def plot_df(df, column=None, ax=None):\n",
" 'Plot based on the `geometry` column of a GeoPandas dataframe'\n",
" df = df.copy()\n",
Expand All @@ -50,12 +51,12 @@
" fig, ax = plt.subplots(figsize=(8,8))\n",
" ax.get_xaxis().set_visible(False)\n",
" ax.get_yaxis().set_visible(False)\n",
" \n",
"\n",
" df.plot(\n",
" ax=ax,\n",
" alpha=0.5, edgecolor='k',\n",
" column=column, categorical=True,\n",
" legend=True, legend_kwds={'loc': 'upper left'}, \n",
" legend=True, legend_kwds={'loc': 'upper left'},\n",
" )\n",
" cx.add_basemap(ax, crs=df.crs, source=cx.providers.CartoDB.Positron)\n",
"\n",
Expand Down

0 comments on commit e1f4d9b

Please sign in to comment.