MathGroup Archive 2007

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

Search the Archive

Re: Question with ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83870] Re: Question with ListPlot
  • From: michael.p.croucher at googlemail.com
  • Date: Mon, 3 Dec 2007 05:44:44 -0500 (EST)
  • References: <fitt98$7eu$1@smc.vnet.net>

On 2 Dec, 09:18, "Ary Adilson Morales Alvarado" <amora... at lme.usp.br>
wrote:
> Dear friend,
>
> I'm master student of S=E3o Paulo University of Brazil, and I have a problem
> with a mathematica code.
>
> I would like to plot one list (only with one colum), but that "x"
> coordinates begin from a number different of zero.
>
> For example, I have a list like that ... a={1,2,3,4} and I would like to
> plot "a" in "y" coordinate and in "x" coordinate I wants to began from 100
> to 103.
>
> Can you help me please.
>
> Thanks in advanced,
>
> Best regards,
>
> --
> Ary Morales
> Master Student
> Microelectronic Laboratory
> University of S=E3o Paulo
>
> --
> This message was scanned for spam and viruses by BitDefender.
> For more information please visithttp://linux.bitdefender.com/

Hi

How about this? It will work with any sized list, a

a = {1, 2, 3, 4, 5, 6};
x = Table[x, {x, 100, 100 + Length[a]}];
dataset = Partition[Riffle[x, a], 2];
ListPlot[dataset]

Hope this helps,
Mike


  • Prev by Date: Re: return two different values
  • Next by Date: Re: return two different values
  • Previous by thread: Re: Question with ListPlot
  • Next by thread: V 6.01 Hyperlink Go Back Problem