RE: Re: Extracting data points from Plot[]

*To*: mathgroup at christensen.cybernetics.net*Subject*: [mg870] RE: [mg782] Re: Extracting data points from Plot[]*From*: "NELSON M. BLACHMAN" <blachman at gtewd.mtv.gtegsc.com>*Date*: Thu, 27 Apr 1995 01:42:35 -0400

Although Plot[ (AppendTo[samples,{x,f[x]}]; f[x]), {x,a,b}] gives a list of the sample points used by Plot, a much simpler way to get the same list, properly ordered, is to take part [[1,1,1,1]] of the --graphics-- output of Plot. E.g., Plot[...][[1,1,1,1]] or P = Plot[...]; P[[1,1,1,1]]. --Nelson M. Blachman Palo Alto, Calif.