Re: map ticks

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Aug 03 2010 - 09:53:00 MDT

Hi Ed,

Unfortunately, you don't have much control over map tickmarks. This is something that's been on our list to improve.

Please see example 9 at:

http://www.ncl.ucar.edu/Applications/mptick.shtml

This shows you one way to create map tickmarks yourself for a mercator projection.

--Mary

On Aug 2, 2010, at 11:55 PM, Yang Yang wrote:

> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Aug 3 09:53:04 2010

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