diff --git a/notebooks/examples.ipynb b/notebooks/examples.ipynb index a1f3a03..24c30bd 100644 --- a/notebooks/examples.ipynb +++ b/notebooks/examples.ipynb @@ -33,11 +33,12 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "source": [ - "#import vsketch\n", + "import vsketch\n", "from prettymaps import *\n", - "import matplotlib.font_manager as fm" + "import matplotlib.font_manager as fm\n", + "from matplotlib import pyplot as plt" ], "outputs": [], "metadata": {} @@ -3901,6 +3902,60 @@ ], "metadata": {} }, + { + "cell_type": "markdown", + "source": [ + "# Lagoa dos Patos (fetch geography by OpenStreetMap Id)" + ], + "metadata": {} + }, + { + "cell_type": "code", + "execution_count": 5, + "source": [ + "fig, ax = plt.subplots(figsize = (12, 12), constrained_layout = True)\n", + "\n", + "plot(\n", + " 'R2709093',\n", + " \n", + " ax = ax,\n", + "\n", + " layers = {\n", + " 'perimeter': {},\n", + " 'water': {'tags': {'natural': ['water']}},\n", + " },\n", + " drawing_kwargs = {\n", + " 'perimeter': {'fill': False, 'lw': 0, 'zorder': 0},\n", + " 'water': {'fc': '#92D5F2', 'ec': '#6da8c2', 'lw': 1, 'zorder': 2},\n", + " }\n", + ")\n", + "\n", + "ax.autoscale()" + ], + "outputs": [ + { + "output_type": "stream", + "name": "stderr", + "text": [ + "/home/marcelo/anaconda3/envs/prettymaps/lib/python3.9/site-packages/ipykernel/ipkernel.py:283: DeprecationWarning: `should_run_async` will not call `transform_cell` automatically in the future. Please pass the result to `transformed_cell` argument and any exception that happen during thetransform in `preprocessing_exc_tuple` in IPython 7.17 and above.\n", + " and should_run_async(code)\n" + ] + }, + { + "output_type": "display_data", + "data": { + "text/plain": [ + "
" + ], + "image/svg+xml": "\n\n\n \n \n \n \n 2021-08-25T12:12:31.679703\n image/svg+xml\n \n \n Matplotlib v3.4.1, https://matplotlib.org/\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n" + }, + "metadata": { + "needs_background": "light" + } + } + ], + "metadata": {} + }, { "cell_type": "code", "execution_count": null,