iris.fileformats.dot

Provides Creation and saving of DOT graphs for a iris.cube.Cube.

In this module:

iris.fileformats.dot.cube_text(cube)

Return a DOT text representation a iris.cube.Cube.

Args:

  • cube - The cube for which to create DOT text.

↑ top ↑

iris.fileformats.dot.save(cube, target)

Save a dot representation of the cube.

Args:

See also iris.io.save().

↑ top ↑

iris.fileformats.dot.save_png(source, target, launch=False)

Produces a “dot” instance diagram by calling dot and optionally launching the resulting image.

Args:

  • source - A iris.cube.Cube, or dot filename.

  • target - A filename or open file handle.

    If passing a file handle, take care to open it for binary output.

Kwargs:

  • launch - Display the image. Default is False.

See also iris.io.save().