.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/plot_06_graticule.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_06_graticule.py: Graticule ========= ``GraticuleLayer`` draws meridians and parallels at a step given in degrees. The map is framed on continental Europe via ``bbox``. .. GENERATED FROM PYTHON SOURCE LINES 8-23 .. raw:: html Basemap: Natural Earth Europe Graticule at a 10-degree step .. rst-class:: sphx-glr-script-out .. code-block:: none | .. code-block:: Python from mappyng import Map, BasemapLayer, GraticuleLayer from mappyng.data import load_europe europe = load_europe() # Continental Europe frame, in EPSG:3857 (the data CRS). bbox = [-1400000, 4000000, 4700000, 11500000] m = Map(europe, bbox=bbox, width=820, height="auto", facecolor="#cfe0ee") m.add(GraticuleLayer(step=10.0, stroke="#9bb0c4")) m.add(BasemapLayer()) m.title("Europe", subtitle="Graticule at a 10-degree step") m.source("Basemap: Natural Earth") m.render("graticule.svg") .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.142 seconds) .. _sphx_glr_download_gallery_plot_06_graticule.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_06_graticule.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_06_graticule.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_06_graticule.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_