iris.quickplot

High-level plotting extensions to iris.plot.

These routines work much like their iris.plot counterparts, but they automatically add a plot title, axis titles, and a colour bar when appropriate.

See also: matplotlib.

In this module:

iris.quickplot.contour(cube, *args, **kwargs)

Draws contour lines on a labelled plot based on the given Cube.

With the basic call signature, contour “level” values are chosen automatically:

contour(cube)

Supply a number to use N automatically chosen levels:

contour(cube, N)

Supply a sequence V to use explicitly defined levels:

contour(cube, V)

See iris.plot.contour() for details of valid keyword arguments.

↑ top ↑

iris.quickplot.contourf(cube, *args, **kwargs)

Draws filled contours on a labelled plot based on the given Cube.

With the basic call signature, contour “level” values are chosen automatically:

contour(cube)

Supply a number to use N automatically chosen levels:

contour(cube, N)

Supply a sequence V to use explicitly defined levels:

contour(cube, V)

See iris.plot.contourf() for details of valid keyword arguments.

↑ top ↑

iris.quickplot.outline(cube, coords=None, color='k', linewidth=None)

Draws cell outlines on a labelled plot based on the given Cube.

Kwargs:

  • coords: list of Coord objects or coordinate names

    Use the given coordinates as the axes for the plot. The order of the given coordinates indicates which axis to use for each, where the first element is the horizontal axis of the plot and the second element is the vertical axis of the plot.

  • color: None or mpl color

    The color of the cell outlines. If None, the matplotlibrc setting patch.edgecolor is used by default.

  • linewidth: None or number

    The width of the lines showing the cell outlines. If None, the default width in patch.linewidth in matplotlibrc is used.

↑ top ↑

iris.quickplot.pcolor(cube, *args, **kwargs)

Draws a labelled pseudocolor plot based on the given Cube.

See iris.plot.pcolor() for details of valid keyword arguments.

↑ top ↑

iris.quickplot.pcolormesh(cube, *args, **kwargs)

Draws a labelled pseudocolour plot based on the given Cube.

See iris.plot.pcolormesh() for details of valid keyword arguments.

↑ top ↑

iris.quickplot.plot(*args, **kwargs)

Draws a labelled line plot based on the given cube(s) or coordinate(s).

See iris.plot.plot() for details of valid arguments and keyword arguments.

↑ top ↑

iris.quickplot.points(cube, *args, **kwargs)

Draws sample point positions on a labelled plot based on the given Cube.

See iris.plot.points() for details of valid keyword arguments.

↑ top ↑

iris.quickplot.scatter(x, y, *args, **kwargs)

Draws a labelled scatter plot based on the given cubes or coordinates.

See iris.plot.scatter() for details of valid arguments and keyword arguments.