Hi Jonathan,
I asked Dave Brown, one of our NCL developers, about this, and he
came back with a full script showing an example. I modified his
example to use gsn_xxxx functions and to create some dummy data.
This gist of this example is that it uses some tickmark resources to
allow you to change the labeling to a log base-2 axis. Please see the
attached script and PS file and let me know if this is not what you're
talking about.
--Mary
On Tue, 13 Sep 2005, Jonathan Vigh wrote:
> Greetings,
> Maybe this is easy -- is there a straightforward way to make an
> xy-plot with a log base-2 axis? I want to make a plot that has linear
> frequency on one y-axis and period (log base-2) on the other axis (with
> ticks at 2, 4, 8, 16). So the two y-axes would look like:
>
>
> 0.25 2
>
> 0.2
>
> 0.15
> 4
> 0.1
> 8
> 0.05
> 16
> 0 inf
> -------------------
>
> I'm guessing it will involve something like:
> http://www.ncl.ucar.edu/Applications/Scripts/xy_8.ncl
> but I'm not sure how to set the axis to be log-base2.
>
> A figure showing what I'm trying to reproduce is attached.
>
> Thanks,
> Jonathan Vigh
>
>
>
> --
> ---------------------------------------------------------------------
> Jonathan Vigh, Ph.D. Candidate work phone: 970.491.8633
> Department of Atmospheric Science vigh@atmos.colostate.edu
> Colorado State University http://euler.atmos.colostate.edu/~vigh/
> ---------------------------------------------------------------------
> ~
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
This archive was generated by hypermail 2b29 : Thu Sep 15 2005 - 09:31:35 MDT