Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

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
>




  • 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