Logo Iris 1.6

Previous topic

Multi-line temperature profile plot

Next topic

Rotated pole mapping

This Page

Example of a polar stereographic plotΒΆ

Demonstrates plotting data that are defined on a polar stereographic projection.

[source code]

../../_images/polar_stereo.png
"""
Example of a polar stereographic plot
=====================================

Demonstrates plotting data that are defined on a polar stereographic
projection.

"""

import matplotlib.pyplot as plt

import iris
import iris.quickplot as qplt


def main():
    file_path = iris.sample_data_path('polar_stereo.grib2')
    cube = iris.load_cube(file_path)
    qplt.contourf(cube)
    ax = plt.gca()
    ax.coastlines()
    ax.gridlines()
    plt.show()


if __name__ == '__main__':
    main()