Re: how to adjust the tick mark on map

From: Eunsil Jung <eunsil.jung_at_nyahnyahspammersnyahnyah>
Date: Sun Nov 10 2013 - 08:31:37 MST

Dear Ziqiang

Will you try either (1) or (2)

(1)
  res@tmYLMode = "Manual" ; Manually set tickmarks on Y axis
  res@tmYLTickSpacingF = 1 ; Only set spacing, not start/end

(2)
  res@tmYLMode = "Explicit" ; Set labels for YL axis
  res@tmYLValues = (/ 30, 31, 32, 33/)
  res@tmYLLabels = (/"30N", "31N", "32N", "33N"/)

#1 works usually, but I used # (2) when I plot hovmoller diagram

If either of them does not work, could you send your code for plotting part?

Thanks
Have a great day!
Sil

On 11/10/13, JiangZiqiang <zqjiang86@hotmail.com> wrote:
> Dear Sil,
> Thank your for your help.
> some warnings appeared, and it does not work.warning:MapPlotSetValues:
> tm[XB|XT|YL|YR]Mode resources are not currently enabled for MapPlot tick
> markswarning:tmYLValues is not a valid resource in map at this
> timewarning:tmYLLabels is not a valid resource in map at this time
> It seems that tmYLMode resource is not suitable for Lambert Conformal
> Project.I don't know why? Perhaps the example below is good. It looks like
> complicated.http://www.ncl.ucar.edu/Applications/mptick.shtml (mptick_10.ncl
> )
> Best,Ziqiang
>
>> Date: Sat, 9 Nov 2013 08:21:59 -0500
>> Subject: Re: how to adjust the tick mark on map
>> From: eunsil.jung@gmail.com
>> To: zqjiang86@hotmail.com
>> CC: ncl-talk@ucar.edu
>>
>> Hi, Ziqiang
>>
>> I'm new to NCL, so not sure it will work in your code or not, but try
>> this.
>>
>> res@tmYLMode = "Explicit"
>>
>> res@tmYLValues = (/real values that should be there/)
>>
>> res@tmYLLabels = (/"whatever you want to appear in Y axis such as 30N"/)
>>
>> and you may want to check this address. There are many examples about
>> the Tick marks.
>> http://www.ncl.ucar.edu/Applications/tickmarks.shtml
>>
>> Hope it helps.
>> Sil
>>
>> On 11/9/13, JiangZiqiang <zqjiang86@hotmail.com> wrote:
>> > Dear all,
>> > How to set lat/lon to 1 degree spacing on map?I tested some resources
>> > such
>> > as tmYLLabelStride=2 and tmYLTickSpacingF=2 etc.However it does not
>> > work.I
>> > want to set YL axis to 30/31/32/33
>> > Thanks for your time.Ziqiang
>> >
>> >
>>
>>
>> --
>> ------------------------------------------------------------------------------------------------
>> Be joyful always; pray continually; give thanks all circumstances.
>>
>> RSMAS/MPO
>> 4600 Rickenbacker cswy
>> Miami FL 33149
>>
>> Phone:
>> Cell : 1-305-987-1415
>> Office: 1-305-421-4036
>> Home: 070-8635-1518
>>
>>
>> Eunsil Jung
>

-- 
------------------------------------------------------------------------------------------------
Be joyful always; pray continually; give thanks all circumstances.
RSMAS/MPO
4600 Rickenbacker cswy
Miami FL 33149
Phone:
Cell   : 1-305-987-1415
Office: 1-305-421-4036
Home: 070-8635-1518
Eunsil Jung
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Nov 10 08:31:55 2013

This archive was generated by hypermail 2.1.8 : Mon Nov 11 2013 - 09:45:33 MST