[ncl-talk] Wrong tickmarks (?) using gsn_csm_contour_map_overlay

Mary Haley haley at ucar.edu
Fri Jul 3 21:16:20 MDT 2015


The map tickmark labeling code in NCL doesn't always work well with "non
simple" map projections.  I think what you are seeing is correct, but is
simply the nature of the projection you have.

To turn off the top and right tickmarks, try:

res at tmYROn = False
res at tmXTOn = False

If you want better looking tickmarks, then you should look at example
mptick_9.ncl at:

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

As the instructions state, you should be able to copy the
"add_map_tickmarks" function to your own code, and then call it yourself.

To control what tickmarks you want on the plot, you need to set:

;---We're putting tickmarks on two axes.
  tmres          = True
  tmres at tmYLValues = ispan(20,50,10)
  tmres at tmXBValues = ispan(-130,-70,10)

;---Attach the new map tickmarks.
  map = add_map_tickmarks(wks,map,tmres)

Of course, you will need to change the ispan range to whatever values you want.

--Mary


On Thu, Jul 2, 2015 at 8:47 AM, Michele Petrini <mpetrini139 at yahoo.it>
wrote:

> Dear helpdesk,
> I am plotting two overlaid contours over a map with
> gsn_csm_contour_map_overlay. Everything works pretty fine but the
> tickmarks. I set res1 at pmTickMarkDisplayMode  = "Always" and I get the
> output you can see in the .ps I attach. What I made wrong? Furthermore, is
> it possible to have longitude and latitude tickmarks on just one side
> (bottom and left sides, resp.) of the plot?
>
> Thank you,
>
> Michele
>
> --
>
> ***
> Michele Petrini
>
> Ph.D. student in Earth Science and Fluid Mechanics
>
> Università degli studi di Trieste,
> Dipartimento di Matematica e Geoscienze
> Palazzina C - via Weiss 1, 34128 Trieste, Italy
>
> Email: mpetrini139 at yahoo.it
> Skype: michele.petrins
> Mobile: +39 3398367372
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> 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/20150703/d00fee54/attachment.html 


More information about the ncl-talk mailing list