[ncl-talk] top labels display error
Adam Phillips
asphilli at ucar.edu
Fri Sep 26 15:15:32 MDT 2014
Hi Yun,
Try commenting out this line:
res at pmTickMarkDisplayMode= "Always"
See the examples here:
http://www.ncl.ucar.edu/Applications/mptick.shtml
If memory serves I do not think you can use the tmXB/tmYL resources when
you set pmTickMarkDisplayMode = "Always". (If I am wrong on that someone
can chime in.) If you like the degree symbol that comes with the labels
generated by that resource but want to customize things a bit to your own
tastes, see example #7 on the page I direct you to above.
If that does not solve your issue, or if you have any further questions
please respond to the ncl-talk email list only.
Adam
On Thu, Sep 25, 2014 at 3:35 PM, Yun Yue <yunyue at huskers.unl.edu> wrote:
> Hi ,
>
> I wrote a very short code to plot regional map. But when I tried to show
> the top tickmarks and labels, the upper part of the plot seems be
> overlaied. I tried to set tmXBLabelsOn = True, tmXBOn = False, it displays
> bottom things ok. When I set tmXTLabelsOn = True, tmXTOn = False. Nothing
> displayed on top.
>
> Here is the code and plot.
>
> Anyone knows how to fix that? Thank you.
>
> Yun
>
>
> ************************************************************************************
>
> res = True
> ; SET UP MAP PROJECTION AND LIMITED REGION
> res at mpProjection = "CylindricalEquidistant"
> res at mpGridAndLimbOn = True ;TURN ON MAP GRID LINE
> res at mpGridLatSpacingF = 5.0 ;GRID LINE SPACING
> res at mpGridLonSpacingF = 5.0
> res at mpLimitMode = "latlon"
> res at mpMinLatF = minlat
> res at mpMaxLatF = maxlat
> res at mpMinLonF = minlon
> res at mpMaxLonF = maxlon
>
> ; COLOR OF CONTINIENTAL OUTLINES
> res at mpFillOn = False ;turn off map gray
> fill
> res at mpOutlineOn = True
> res at mpOutlineBoundarySets = "National" ;trun on country boundaries
> res at mpDataSetName = "Earth..4" ;choose most recent
> boundary
> res at tmXBLabelsOn = False ;no bottom labels
> res at tmXBOn = False ;no bottom
> tickmarks
> res at tmXTLabelsOn = True
> res at tmXTOn = True
> res at pmTickMarkDisplayMode= "Always" ;turn on built in tickmarks
>
> plotb = gsn_csm_map(wks,res)
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Division, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140926/8d1b972e/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fig1.000002.png
Type: image/png
Size: 112963 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140926/8d1b972e/attachment.png
More information about the ncl-talk
mailing list