Ngl.legend_ndc
Draws a legend anywhere in the viewport.
Prototype
pid = Ngl.legend_ndc(wks, nitems, labels, x, y, res=None)
Arguments
wksThe identifier returned from calling Ngl.open_wks.
nitemsThe number of legend items.
labelsAn array of label strings for the legend.
x, yThe NDC values defining the coordinates of the upper left corner of the legend.
res=NoneAn (optional) instance of the Resources class having legend resources as attributes.
Return value
pidA PlotId representing the legend created.
Description
This function creates and draws a legend on the given workstation. Legend resources can be set via the res variable.
See Also
Ngl.labelbar_ndc, Ngl.draw_ndc_grid
Legend resources