Adds a text string to an existing plot.
txt = Ngl.add_text(wks, plot, text, x, y, res=None)
The identifier returned from calling Ngl.open_wks.plot
The id of the plot which you want to add the text strings to.text
The text string to add.x, y
The x, y coordinates of the text string.res=None
An (optional) instance of the Resources class having TextItem resources as attributes.
A PlotId representing the text added.
This function adds a text string to the requested plot. plot is the value returned from a previous call to one of the PyNGL plotting functions, like Ngl.xy, Ngl.contour_map, etc. x and y are scalars defining the coordinates of the text string, and resources can optionally contain an unlimited number of attributes that are TextItem resource names and their values. Note that x and y must be in the same data space as the data in plot.
If you call this function multiple times, you should use a unique variable to hold the id returned.
Missing values are not allowed in this function.