[ncl-talk] How to change the spacing betwenn latitude in a map figure?
Mary Haley
haley at ucar.edu
Wed Nov 12 08:21:53 MST 2014
Hi,
I assume you are talking about the spacing of the tickmarks, and not the
spacing of the lat/lon grid lines (which you have to turn on via
mpGridAndLimbOn)?
You can't control the tickmark spacing very easily for any non cylindrical
equidistant map, but you could set:
res at mpGridAndLimbOn = True
res at mpGridLatSpacingF = 1
res at mpGridLonSpacingF = 1
to get grid lines spaced at 1 degrees.
If you really want tickmarks to be 1 degrees, then see the first frame of
example "mptick_9.ncl" at:
http://www.ncl.ucar.edu/Applications/mptick.shtml#ex9
You should be able to copy the "add_map_tickmarks" function that is in this
script, and use it for your own purposes.
You would need to add these two lines, as you see in this example, but
change them for your own use:
;---We're putting tickmarks on all four axes.
res at tmYLValues = ispan(32,55,3)
res at tmXBValues = ispan(128,144,4)
--Mary
On Mon, Nov 10, 2014 at 5:10 AM, 朱磊 <leizhu at pku.edu.cn> wrote:
> Hello,
>
> I have set my map plot setting like:
> res at mpProjection = "LambertConformal"
> res at mpLambertParallel1F = f1 at TRUELAT1
> res at mpLambertParallel2F = f1 at TRUELAT2
> res at mpLambertMeridianF = f1 at CEN_LON
> res at mpLimitMode = "Corners"
> res at mpLeftCornerLatF = 15
> res at mpLeftCornerLonF = 110
> res at mpRightCornerLatF = 35
> res at mpRightCornerLonF = 140
> and used "gsn_csm_contour_map" to plot.
>
> Then the latitude spcing default to set to 1 degree. How can I to change
> the defaut setting, like 2 degree or 0.5 degree? If anyone can help me?
> Thank you very much.
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141112/4d13c90e/attachment.html
More information about the ncl-talk
mailing list