Re: How to transform x axis on ListPlot?
- To: mathgroup at smc.vnet.net
- Subject: [mg33183] Re: How to transform x axis on ListPlot?
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Thu, 7 Mar 2002 02:23:33 -0500 (EST)
- References: <a61v3u$gpm$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Rob, You need to specify the first coordinates: x = Table[{200z, Sin[z]}, {z, 0, 3.0, 0.01}]; ListPlot[x] -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565 "1.156" <rob at piovere.com> wrote in message news:a61v3u$gpm$1 at smc.vnet.net... > Greetings cypherists, I have another problem that I bring up only after a long time of putting up with no solution. I have a list which I plot but the integer x axis of the plot is not scaled to suit me. Each position in the list results from some > increment of a variable which I'd like to represent on the graph. About all I've been able to do so far is to rig up the list so that each entry in the array/list being plotted represents some integer multiple of the actual variable so things don't get > too confusing. For example: > > x=Table[Sin[z],{z, 3.0, 0.01}]; > ListPlot[x] > > The plot looks nice but the x axis goes from 0 to 300 and I'd like it to go from say, 0 to 600 (MHz). Surely this is easily done but I haven't found a single example of this in the books or in reviewing the posts on this ng. > > Options[ListPlot] doesn't help me either. > > This is no problem when using Plot[] on a continuous variable. > > Help appreciated as usual. Thanks. > > Rob > >