MathGroup Archive 1998

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

Search the Archive

Re: How to plot list from (0,0) ?



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.



  • Prev by Date: Re: Speeding up ReadList[]?
  • Next by Date: RE: Output of Animate to AVI
  • Prev by thread: How to plot list from (0,0) ?
  • Next by thread: Re: How to plot list from (0,0) ?