PyNGL Home > Functions > Workstation routines

Ngl.change_workstation

Changes the workstation that plots will be drawn to.

Prototype

Ngl.change_workstation(plot, wks)

Arguments

plot

The identifier returned from calling a plotting function (Ngl.xy, Ngl.contour_map etc).

wks

The identifier returned from calling Ngl.open_wks.

Return value

   None

Description

This procedure changes the workstation (output device) that a PlotId's object will be drawn to. The first argument is a plot id and the second argument is a workstation id returned from a previous Ngl.open_wks call.

See Also

Ngl.open_wks, Ngl.frame, Ngl.clear_workstation, Ngl.update_workstation

Examples

For an example on changing the output device from an X11 window to an NCGM file, a PS workstation, and then a PDF workstation, see ngl08p.py.