Re: How to plot list from (0,0) ?
- To: mathgroup@smc.vnet.net
- Subject: [mg12053] Re: [mg11984] How to plot list from (0,0) ?
- From: Sean Ross <seanross@worldnet.att.net>
- Date: Fri, 24 Apr 1998 01:52:23 -0400
- References: <199804170740.DAA00135@smc.vnet.net.>
8623806 wrote: > > I have a list with 10 element as follows, > t={{1,1.31496},{2,2.29389},{3,3.24304},{4,4.17759},{5,5.11638}, > {6,6.0466},{7,6.97955},{8,7.91079},{9,8.84024},{10,9.7713}}, which is > a computed result > > I hope to plot this list from {0,0}, hence I use Prepend[t,{0,0}] to > insert {0,0}. But it seems not work, the output graphic is not from > {0,0}. > > If anyone can tell me, the beginner of Mathematica. Thank a lot! ListPlot[Prepend[t,{0,0}]] works just fine and plots from {0,0}. If I may venture a guess as to your problem; I bet you entered Prepend[t,{0,0}] and expected that t would have an extra element. If you wanted to update t, you would need to use: t=Prepend[t,{0,0}] -- Remove the _nospam_ in the return address to respond.
- References:
- How to plot list from (0,0) ?
- From: gis86806@cis.nctu.edu.tw (8623806)
- How to plot list from (0,0) ?