MathGroup Archive 2004

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

Search the Archive

Re: export plot data


Hi,

plt = Plot[Sin[x], {x, 0, Pi}];
Export["tmp.txt", 
  First[Cases[plt, _Line, Infinity] /. Line[pnts_] :> pnts], "Table"]

Regards
  Jens

grimal wrote:
> 
> message to the list
> 
> Dear list members,
> 
> I have developed a Mathematica notebook with a Plot command at the end.
> The evaluation of Plot[f,{x,xmin,xmax}] involves a function f that is
> defined in the notebook; xmin and xmax are also functions defined in the
> notebook and evaluated while doing the Plot.
> I am satisfied with the result of the Plot command.
> 
> Now, I would like to export in a txt file the data (list of points)
> generated during the evaluation of the Plot. Then I could use the list
> of points to plot the data with another software.
> I have tried the Table command to generate a list but it does not seem
> to work.
> Can anybody help me?
> 
> Thanks
> 
> Quentin Grimal


  • Prev by Date: Re: labeling curves on a plot
  • Next by Date: RE: export plot data
  • Previous by thread: export plot data
  • Next by thread: RE: export plot data