axes for contour plot

From: Bithi De <bde_at_nyahnyahspammersnyahnyah>
Date: Tue Aug 27 2013 - 15:42:26 MDT

Hi All,
I want to make a contour plot for an array(12,30) with 12 months and
30 years data. How can I apply Jan-Dec for months and say 1951-1980
for years the axis?
Now I am having only 1-12 for months and 1-30 for years on the axis.

my code is like this:

 wks = gsn_open_wks ("X11","QTano")
 gsn_define_colormap(wks,"BlueRed")

  res = True
  res@cnFillOn = True
  res@cnLevelSelectionMode= "ManualLevels"
  res@cnMinLevelValF = -0.3
  res@cnMaxLevelValF = .25
  res@cnLinesOn = False
  res@gsnSpreadColors = True

  res@lbLabelAutoStride = True
  res@gsnMaximize = True
  res@tiYAxisString = "Month (Jan to Dec)"
  res@tiXAxisString = "Year (1951-2080)"

 month =(/1,2,3,4,5,6,7,8,9,10,11,12/)
  plot = gsn_csm_contour(wks,MTano,res)

Thanks in advance.
Bithi

-- 
Bithi De
Graduate Student , Research Assistant
International Arctic Research Center , University of Alaska Fairbanks
Fairbanks , Alaska -99775
USA
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Aug 27 15:42:51 2013

This archive was generated by hypermail 2.1.8 : Fri Aug 30 2013 - 14:04:57 MDT