Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.

Exploring different Coastline options in Magics

Next couple of notebooks will help you discover lots of possibilities for designing background of your maps using Magics.

mcoast controls background of our maps. Here you can set things like colours of land and sea, coastline resolution and colour, and also grid, rivers, boarders, cities etc.
List of all mcoast parameters you can find here

Notebooks can be downloaded from Magics github space


Panel
titleColorwhite
titleBGColor#2b619e
title
Coastlines 1
Boundaries and rivers

Jupyter Viewer
notebookUrlhttps://github.com/ecmwf/notebook-examples/blob/master/visualisation/gallery/boundaries_and_rivers.ipynb

Panel
titleColorwhite
titleBGColor#2b619e
titleCoastlines 3

Jupyter Viewer
notebookUrlhttps://github.com/ecmwf/notebook-examples/blob/master/visualisation/gallery/sea_lakes_rivers.ipynb

Panel
titleColorwhite
titleBGColor#2b619e
titleCoastlines 2

Jupyter Viewer
notebookUrlhttps://github.com/ecmwf/notebook-examples/blob/master/visualisation/gallery/high_resolution_coastline.ipynb

Panel
titleColorwhite
titleBGColor#2b619e
titleCoastlines 4



Info

Note that these examples are only skeletons to illustrate the functionality of Magics.


You can download this Jupyter notebook from the ECMWF github space.



Info

Plotting in directly in Jupyter notebooks doesn't need output to be specified. Most of the time you will want an output.

Code Block
languagepy
titleTo run this outside of Jupyter notebooks add this piece of code:
png = magics.output(
    output_formats = ['png'],
    output_name_first_page_number = "off",
    output_name = "my_png")
magics.plot(png, projection, coast)
Jupyter ViewernotebookUrlhttps://github.com/ecmwf/notebook-examples/blob/master/visualisation/gallery/boundaries_cities_rivers.ipynbapplicationLinka675ea11-b2c4-336c-bfb6-077e786ef5b2