Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2851

Re: Controlling the scale of x-axis in ListPlot

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Controlling the scale of x-axis in ListPlot
Date 2011-06-01 08:31 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <is4td2$b10$1@smc.vnet.net> (permalink)

Show all headers | View raw


With Mathematica 8.0.1 under Windows XP:

    FixedPoint[Cos, 1.0] // Timing
{0., 0.739085}


On 5/31/2011 7:48 AM, daniel.andersson@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
>

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Controlling the scale of x-axis in ListPlot Murray Eisenberg <murray@math.umass.edu> - 2011-06-01 08:31 +0000

csiph-web