PyNGL Home > Functions > PyNGL object routines

Ngl.maximize_plot

Maximizes the size of the given plot on the workstation.

Prototype

Ngl.maximize_plot(wks, plotid, res=None)

Arguments

wks

The identifier returned from calling Ngl.open_wks.

plotid

The identifier returned from calling any graphics routine like Ngl.xy or Ngl.contour_map.

res=None

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

Return value

   None

Description

This procedure takes the given plot and maximizes its size in the given workstation. This is useful if you created a plot, and then attached other plots or objects to it via Ngl.add_annotation that might have caused the plot to grow in size.

The optional variable res allows you to set some special nglPaperXXX resources, like nglPaperOrientation.

See Also

Special resources nglPaperOrientation, nglPaperHeight, nglPaperWidth,

Examples

See overlay1.py.