map/ explicit tickmarks/ tmYLeft resource

From: Sam McClatchie (NOAA Federal) <sam.mcclatchie_at_nyahnyahspammersnyahnyah>
Date: Thu Jul 18 2013 - 17:42:25 MDT

Colleagues

I have a rather simple question, I think. I have edited a map to be
large scale so the default tickmarks for lat and long are not where they
look tidy. So I want to set explicit tickmarks and have managed this
fine for the x-axis, but not the y-axis. Also, I'd prefer to have the
tickmarks that are currently on the upper x-axis actually appear on the
lower x-axis. My code snippet follows. Have I made a mistake with my use
of the tmYLeft resource?

;;;;;;;;;;;;;;;;;
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

begin

   wks =
gsn_open_wks("pdf","../figures/map_changes_in_egg_distributions_by_decade_by_species")
; open a pdf file
; wks =
gsn_open_wks("x11","../figures/map_changes_in_egg_distributions_by_decade_by_species")
; open graph

   res = True ; plot mods desired
; res@gsnMaximize = True ; make ps, pdf, eps, ..
large
   res@gsnDraw = False
   res@gsnFrame = False
   res@mpOutlineOn = True ; turn on outline
   res@mpFillOn = True ; map fill
   res@mpMinLatF = 32 ; zoom in on map
   res@mpMaxLatF = 35
   res@mpMinLonF = -123.
   res@mpMaxLonF = -117.
   res@mpDataBaseVersion = "mediumres" ; select database
  ; add additional axis on top of plot
    res@tmXUseBottom = False ; Keep top axis independent of bottom.
    res@tmXTLabelsOn = True ; have tick mark labels
    res@tmXTOn = True ; have tick marks
    res@tmXTMode = "Explicit" ; label independently
    res@tmXTValues = (/-117,-118,-119,-120,-121,-122,-123/)
    res@tmXTLabels = (/"","118","","120W","","122",""/)

    res@tmYLeft = False ; Keep top axis independent of bottom.
    res@tmYTLabelsOn = True ; have tick mark labels
    res@tmYTOn = True ; have tick marks
    res@tmYTMode = "Explicit" ; label independently
    res@tmYTValues = (/32,33,34,35/)
    res@tmYTLabels = (/"32","33","34","35"/)

   plot = gsn_csm_map_ce(wks,res) ; create map
;;;;;;;;;;;;;;;;;;;;

Thanks

Sam

-- 
Sam McClatchie,
Supervisory oceanographer, Fisheries oceanography
Southwest Fisheries Science Center, NOAA,
8901 La Jolla Shores Dr.
La Jolla, CA 92037-1509, U.S.A.
email <Sam.McClatchie@noaa.gov>
Office: 858 546 7083, Cellular:  858 752 8495
Research home page <www.fishocean.info>
                    /\
       ...>><xX(¡>
                 //// \\\\
                    <¡)Xx><<
               /////  \\\\\\
                         ><(((¡>
   >><(((¡>   ...>><xX(¡>O<¡)Xx><<

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 18 17:42:39 2013

This archive was generated by hypermail 2.1.8 : Fri Jul 19 2013 - 15:39:06 MDT