Re: How to emphasis the upper ocean at xy plot?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 14 2012 - 11:50:18 MDT

Chen,

You can use the resources

   res@tmYLMode = "Explicit"
   res@tmYLValues = (/...list of values where you want a major tickmark/)
   res@tmYLLabels = "" + res@tmYLValues ; You can put whatever you want here,
                                                                       ; but it needs to be an array of the same length as res@tmYLValues

See example tm_2.ncl at:

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

This is doing a similar thing for the X axis, using tmXBXXXX resources.

--Mary

On Sep 14, 2012, at 4:06 AM, clchen wrote:

> Hi,
> I am trying to plot ocean depth vs. mixed layer depth (MLD) using:
> ;=======================================
> time = fspan(0,11,12); month
> mld = (/20,30,40,50,70,120,140,150,100,90,50,20/);
> plot = gsn_csm_xy (wks,time,mld,res)
> ;========================================
>
> I want to emphasis the upper ocean, eg. one major-tick for every 10m at upper 50m, and every 50m lower, and length of each tick is equal.
> So would you please tell me how to do that?
> Thanks!
>
> Chen
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Sep 14 11:50:27 2012

This archive was generated by hypermail 2.1.8 : Fri Sep 21 2012 - 16:22:30 MDT