Re: Controlling the scale of x-axis in ListPlot

*To*: mathgroup at smc.vnet.net*Subject*: [mg119375] Re: Controlling the scale of x-axis in ListPlot*From*: Rolf Schramek <subirolf at googlemail.com>*Date*: Wed, 1 Jun 2011 04:32:53 -0400 (EDT)*References*: <is2kj4$qr3$1@smc.vnet.net>

On 31 Mai, 13:48, "daniel.anders... at bwinparty.com" <daniel.anders... at bwinparty.com> wrote: > Hi, > > I need to plot two a vector {y_1,...,y_n} against a vector {x_1,...,x_n} and I want to the latter to be distributed with equal distances between the elements. Mathematica automatically scales the x-axis so that it is linear with respect to the x-values, i.e. if x={1,2,10}, then the distance between the second and third element will be eight times longer than the distance between the second and first element. I would like the distances to be of equal length. > > Any ideas? > > Cheers, > Daniel Hello, this might work: y = {1, 3, 0, -4} x = {1, 2, 10, 50} ListPlot[y , PlotStyle -> PointSize[0.03] , Ticks -> {Transpose[{Range[Length[y]], x}], Automatic} ] Greetings