.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_highways_railways_and_hidrographies.py: Highways, railways and hidrographies ==================================== In this example, we'll get and plot brazil highways, railways and higrographies. All we need to do is request the right layer in the right IBGE ArcGIS server service. .. code-block:: default from mapsbr import ibgemaps, arcgis railways = arcgis.get_map("BASEMAP", layer=2) highways = arcgis.get_map("BASEMAP", layer=3) hidrographies = arcgis.get_map("BASEMAP", layer=4) transports = railways, highways, hidrographies titles = ["Railways", "Highways", "Hidrographies"] Once we have it, let's now plot it. .. code-block:: default import matplotlib.pyplot as plt fig, axes = plt.subplots(nrows=1, ncols=3, figsize=(15, 10), constrained_layout=True) br = ibgemaps.get_map("BR") for ax, transport, title in zip(axes.flat, transports, titles): br.plot(ax=ax, color="white", edgecolor="gray") transport.plot(ax=ax, column=transport.columns[1]) ax.set_title(title) ax.axis("off") .. image:: /auto_examples/images/sphx_glr_plot_highways_railways_and_hidrographies_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 12.143 seconds) **Estimated memory usage:** 49 MB .. _sphx_glr_download_auto_examples_plot_highways_railways_and_hidrographies.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_highways_railways_and_hidrographies.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_highways_railways_and_hidrographies.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_