Re: f[x] as top axis in ListPlot
- To: mathgroup at smc.vnet.net
 - Subject: [mg6231] Re: [mg6201] f[x] as top axis in ListPlot
 - From: sherod at boussinesq.Colorado.EDU (Scott Herod)
 - Date: Fri, 28 Feb 1997 03:21:56 -0500
 - Organization: /usr/local/lib/rn/organization
 - Sender: owner-wri-mathgroup at wolfram.com
 
Answering my own question...
Yes, in Mma 3.0 something like the following works.
In[7]:=
unts = Table[{y, E^y},{y,0,2  Pi,1}];
In[6]:=
Plot[Sin[y], {y,0,2 Pi}, Frame -> True, Axes -> False, 
  FrameLabel -> {"x", "y", "z", ""}, 
  FrameTicks -> {Automatic, Automatic, unts, None}]
You must simply replace "unts" with a list of values from the function x[n].
Scott Herod
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In article <5f3hvi$g2v at smc.vnet.net> sherod at newton.Colorado.EDU (Scott Herod) writes:
>A quick question about something that may be trivial now in 3.0.
>
>I have two list of numbers, x[n] and y[n].  x[n] is monotone.  I would like
>to ListPlot[y[n]] but have the top axis be marked in increments of x[n].
>Is this simple?  I think that I will just make my own axis and x tick
>marks and superimpose it on the plot of y.
>
>Scott Herod
>