PyNGL Home > Functions > PyNGL object routines

Ngl.destroy

Destroys an Ngl object.

Prototype

Ngl.destroy(object)

Arguments

object

The identifier returned from calling any object creation function, like Ngl.xy, Ngl.contour, Ngl.open_wks, etc.

Return value

   None

Description

This procedure destroys an Ngl object. It does not delete the variable referencing the object.

Examples

import Ngl

wks = Ngl.open_wks("x11","example")

#
# Draw the current color map.
#
Ngl.draw_colormap(wks)

#
# Destroy the workstation object
#
Ngl.destroy(wks)
Ngl.end()