map ticks

From: Yang Yang <yang123yang_at_nyahnyahspammersnyahnyah>
Date: Mon Aug 02 2010 - 23:55:59 MDT

Hello:

I tried to control the ticks of my map by using:
  res@tmXBMode = "Explicit"
  res@tmXBValues = (/ 174,176,178/)
  res@tmXBLabels = (/"174E","176E","178E"/)

  res@tmYLMode = "Explicit"
  res@tmYLValues = (/ -40,-38,-36/)
  res@tmYLLabels = (/"40S", "38S", "36S"/)

However, it does not work with following info:
warning:MapPlotSetValues: tm[XB|XT|YL|YR]Mode resources are not currently enabled for MapPlot tick marks
warning:tmYLValues is not a valid resource in map at this time
warning:tmYLLabels is not a valid resource in map at this time
warning:tmXBValues is not a valid resource in map at this time
warning:tmXBLabels is not a valid resource in map at this time

I cannot figure out what is wrong with my script. Would you please give me some hints? Thanks!

The complete plot resources are:

  res = True

  res@gsnMaximize = True
  res@gsnDraw = False
  res@gsnFrame = False

  res@mpProjection = "Mercator" ; Change Map projection
  res@mpDataBaseVersion = "MediumRes" ; Medium resolution

  res@mpLimitMode = "LatLon" ; Limit the map area by latitude/longitude.
  res@mpMinLonF = 173
  res@mpMaxLonF = 179
  res@mpMinLatF = -41.50
  res@mpMaxLatF = -35.
  res@pmTickMarkDisplayMode = "Always"
  res@mpPerimOn = False
  res@tmXBMode = "Explicit"
  res@tmXBValues = (/ 174,176,178/)
  res@tmXBLabels = (/"174E","176E","178E"/)

  res@tmYLMode = "Explicit"
  res@tmYLValues = (/ -40,-38,-36/)
  res@tmYLLabels = (/"40S", "38S", "36S"/)

  res@mpOutlineOn = True
  res@mpOutlineBoundarySets = "Geophysical"
  res@mpGeophysicalLineThicknessF = 1.25
  res@mpNationalLineThicknessF = 1.25
  res@mpLandFillColor = "white"
  res@mpGridAndLimbOn = False
  res@mpOutlineDrawOrder = "PostDraw"

Thank you very much!

Cheers!
Ed

      
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Aug 2 23:56:04 2010

This archive was generated by hypermail 2.1.8 : Tue Aug 03 2010 - 15:09:38 MDT