[ncl-talk] Spectral Analysis (Period in X-axis)

Adam Phillips asphilli at ucar.edu
Fri Jun 16 15:57:28 MDT 2017


Hi SBR,
To switch to period being on the bottom y-axis you can do something like
this:
pres at tmXBMode   = "Explicit"
pres at tmXBValues = (/".02",".10",".20",".3333",".50"/)
pres at tmXBLabels = (/"50","10","5","3","2"/)
pres at tiXAxisString = "Period (years)"

To alter the Y-axis type, you can set trYAxisType and trYCoordPoints as is
done in XY example #30 here:
http://www.ncl.ucar.edu/Applications/xy.shtml#ex30

Hope that helps. If you have any further questions please respond to the
ncl-talk email list.
Adam





On Fri, Jun 16, 2017 at 12:52 PM, S. B. Ratna <sbratna2012 at gmail.com> wrote:

> Hi All,
> I would like to plot the spectral analysis for my annual mean data for
> about 800 years. I would like to use 'spec_4.ncl' but I need "period
> (year)" in the X-axis instead of "Frequency".
> Also, the X-axis scale should be 4 8 16 32 64 128 256 512.
> Could you please suggest how to draw such figure.
> https://www.ncl.ucar.edu/Applications/Scripts/spec_4.ncl
>
> Thanks.
> SBR
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>



-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, 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/20170616/001385e3/attachment.html 


More information about the ncl-talk mailing list