MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: f[x] as top axis in ListPlot

  • To: mathgroup at
  • 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

Answering my own question...

Yes, in Mma 3.0 something like the following works.

unts = Table[{y, E^y},{y,0,2  Pi,1}];

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> 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

  • Prev by Date: Re: barfing on an integral
  • Next by Date: Re: selecting from lists
  • Previous by thread: f[x] as top axis in ListPlot
  • Next by thread: printing and font problems