PyNGL Home > Functions > Graphics routines

Ngl.blank_plot

Creates a blank plot.

Available in version 1.3.1 or later.

Prototype

plot = Ngl.blank_plot(wks, res=None)

Arguments

wks

The identifier returned from calling Ngl.open_wks.

res=None

An (optional) instance of the Resources class having PyNGL resources as attributes.

Return value

plot

A PlotId representing the blank plot created.

Description

This function creates a blank plot, that can be useful for adding things to it, or customizing it and overlaying it on another existing plot.

Plot options can be set via the res variable.

By default, this function does not draw the blank plot. If you want to draw the plot and/or advance the frame, set nglDraw and/or nglFrame to True.

See Also

Ngl.xy

Title resources
TickMark resources
Special "ngl" resources

Examples

See tickmark1.py (output) in the gallery.