Hi Andres,
there are several places on my site that demonstrate explicit tick mark
labeling. I'll point you to one:
http://www.cgd.ucar.edu/csm/support/CSM_Graphics/xy.shtml
see example 6
the one gotcha, is that the "values" must be somthing that the plot
already understands. for instance, if your axis is simply a linear
progression (0...N) etc, then you need to specify that you want a label
at 4,8,16,etc or whatever specific value you desire.
let me know if you have difficulties implimenting it.
cheers,
sylvia
On Fri, 21 Nov 2003, Andres Roubicek wrote:
> I am trying to plot a hovmoeller plot by reading a netcdf daily datafile
> and would like to have the time axis labelled with dates like "20031120"
> or something like that.
>
> I could not find specific information online, I would appreciate help or
> directions to online instructions. below I include a test script.
>
> Thank you,
> Andres
>
>
> ------------------------------------------------------------------
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
> begin
>
> a = addfile("/Datasets/ncep/hgt.2003.nc","r")
> x = a->hgt(:,{850},{60},:)
>
> wks = gsn_open_wks ("ps", "test" ) ; open ps file
> gsn_define_colormap(wks,"BlWhRe") ; choose colormap
>
> res = True ; plot mods desired
> res@cnFillOn = True ; turn on color fill
> res@gsnSpreadColors = True ; use full range
> of colors
>
> res@trYReverse = True ; reverse y axis
>
> res@lbLabelAngleF = 45 ; angle labels
>
> plot = gsn_csm_hov(wks, x(:,{0:360}), res)
>
> end
> -------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
******************************************************
Sylvia Murphy EML: murphys@ucar.edu
NCAR CGD/CAS PHN: 303-497-1720
3080 Center Green Drive FAX: 303-497-1333
Boulder CO 80301
WEB: http://www.cgd.ucar.edu/csm/support/
http://www.cgd.ucar.edu/csm/support/CSM_Graphics/
******************************************************
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Fri Nov 21 2003 - 15:04:01 MST