Ngl.text_ndc
Draws a text string on the viewport.
Prototype
txt = Ngl.text_ndc(wks, text, x, y, res=None)
Arguments
wksThe identifier returned from calling Ngl.open_wks.
textThe text string.
x, yThe NDC coordinates of the text string.
res=NoneAn (optional) instance of the Resources class having TextItem resources as attributes.
Return value
txtA PlotId of the text object created.
Description
This procedure draws a text string on the viewport of the requested workstation. x and y are scalars defining the coordinates of the text string in NDC space, and resources can optionally contain an unlimited number of attributes that are resource names and their values.
The frame is not advanced when you call this procedure, so you need to call Ngl.frame yourself if you want to advance the frame.
Missing values are not allowed in this procedure.
See Also
Ngl.text, Ngl.add_text, Ngl.draw_ndc_grid
Examples
See examples ngl05p.py (output), ngl07p.py (output), and ngl11p.py (output).