NCL Website header
NCL Home > Documentation > Functions > Graphics routines


Draws two text strings at the bottom of the workstation to indicate the time the plot was created and other information.


load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"      ; These four libraries are automatically
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"       ; loaded from NCL V6.4.0 onward.
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"   ; No need for user to explicitly load.
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"

	procedure infoTimeStamp (
		wks          : graphic,  
		font_height  : float,    
		other_info   : string    



A Workstation identifier. The identifier is one returned either from calling gsn_open_wks or calling create to create a Workstation object.


The font height of the text strings.


A user-supplied text string that will appear on the bottom right of the workstation.


This procedure draws a text string at the bottom left of the given workstation to indicate the time the visualization was created, and draws the other_info text string at the bottom right of the workstation. The frame is not advanced in this procedure.


Example 1

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" 
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" 
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"

; Read in netCDF file.
  a = addfile("","r")
  u = a->U(0,:,8)
; Create plot.
  wks = gsn_open_wks("ncgm","infoTimeStamp")   

  res                 = True                     ; plot mods desired
  res@gsnFrame        = False                    ; don't advance frame yet

  plot = gsn_csm_xy(wks,u&lat,u,res)             ; create xy plot
; Add time stamp.
  infoTimeStamp(wks,0.015,"infoTimeStamp test")
  frame(wks)                                     ; now advance frame

For an application example, see: