title: Mathematica: How to obtain data points plotted by plot command?
body: <p>When plotting a function using Plot, I would like to obtain the set of data points plotted by the Plot command.</p>
  
  <p>For instance, how can I obtain the list of points {t,f} Plot uses in the following simple example? </p>
  
  <pre><code>f = Sin[t]
  Plot[f, {t, 0, 10}]
  </code></pre>
  
  <p>I tried using a method of appending values to a list, shown on page 4 of Numerical1.ps (Numerical Computation in Mathematica) by Jerry B. Keiper, <a href="http://library.wolfram.com/infocenter/Conferences/4687/" rel="noreferrer">http://library.wolfram.com/infocenter/Conferences/4687/</a> as follows:</p>
  
  <pre><code>f = Sin[t]
  flist={}
  Plot[f, {t, 0, 10}, AppendTo[flist,{t,f[t]}]]
  </code></pre>
  
  <p>but generate error messages no matter what I try. </p>
  
  <p>Any suggestions would be greatly appreciated.</p>