Ngl.destroy
Destroys an Ngl object.
Prototype
Ngl.destroy(object)
Arguments
objectThe identifier returned from calling any object creation function, like Ngl.xy, Ngl.contour, Ngl.open_wks, etc.
Return value
NoneDescription
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()