MathGroup Archive 2007

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

Search the Archive

Re: ListPlot


The function rListPlot defined below should do the job.

rListPlot[ lst : {{_, _} ..} ] := ListPlot[{#=E3=80=9A2=E3=80=9B, #=E3=80=
=9A1=E3=80=9B} & /@ lst]
rListPlot[ lst_List ] := ListPlot[{lst, Range[Length[lst]]} //
Transpose]

Example:

lst1 = Range[100]^2 + 1000;
lst2 = Table[{i, i^2 + 1000}, {i, 100}];

rListPlot[ lst1 ];
rListPlot[ lst2 ];



  • Prev by Date: Re: Working with D, definition of a function
  • Next by Date: Re: v.6 RevolutionPlot3D
  • Previous by thread: Re: ListPlot
  • Next by thread: Re: ListPlot