Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
titleColorwhite
titleBGColor#2b619e
titleUsing Gradients method for shading

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



Info

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


You can download this Jupyter notebook and  temperature data from ECMWF github space










Tip

More about projections in projection examples.




Tip

More about coastline plotting in  coastline examples.






Info

Metview can help you choose colours for gradients method. Here you can read how Metview contouring icon can be used for finding the most suitable colours.









Tip

More about legend plotting in legend tutorial.









Tip

More about text plotting in text plotting tutorial.



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 = output(
    output_formats = ['png'],
    output_name_first_page_number = "off",
    output_name = "gradients2")
magics.plot(png, projection, temperature, contour, coast, legend, title)