Re: ListLinePlot starting at x=0 rather than x=1
- To: mathgroup at smc.vnet.net
- Subject: [mg123601] Re: ListLinePlot starting at x=0 rather than x=1
- From: Tomas Garza <tgarza10 at msn.com>
- Date: Tue, 13 Dec 2011 05:38:41 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201112121145.GAA12913@smc.vnet.net>
Try this: a = Table[Accumulate[RandomReal[{-1, 1}, 25]], {3}];ListLinePlot@Table[Transpose[{Range[0, 24], a[[i]]}], {i, 1, 3}] -Tomas > Date: Mon, 12 Dec 2011 06:45:17 -0500 > From: pedro_silva58 at hotmail.com > Subject: ListLinePlot starting at x=0 rather than x=1 > To: mathgroup at smc.vnet.net > > greetings from a newbie! > i'm trying to plot a bunch of numbers against n {0,1,2...}, something along the lines of (from the help) > ListLinePlot[Table[Accumulate[RandomReal[{-1, 1}, 25]], {3}]] > , but i need the lines to start at x=0, rather than 1. i expect this to be simple, but i can't find a way to do it. any help would be appreciated! > > cheers, > pedro >
- References:
- ListLinePlot starting at x=0 rather than x=1
- From: pedro silva <pedro_silva58@hotmail.com>
- ListLinePlot starting at x=0 rather than x=1