MathGroup Archive 2013

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

Search the Archive

Re: Getting the plotted data from a graph


On Sat, 15 Jun 2013 02:24:48 -0600, Lily T. <econactually at gmail.com> wrote:

> Dear All,
>
> My question is regarding the plotted data points in a graph. Assume you  
> draw a graph of sinx as:
>
> g1 = Plot[Sin[x], {x, -Pi, Pi},
>       Frame -> True, FrameLabel -> {"x", "y"}, ImageSize -> 2.6*72
>     ]
>
> then how can I get all of the data points of this graph by using  
> mathematica?
>
> This is really important for me and I couldn't find the answer anywhere  
> online!
>
> Thank you for your help in advance!
>
> Best,
> Lily
>
The instructions

L = {};Plot[L = Append[L, {x, Sin[x]}]; Sin[x],{x, -Pi, Pi}]

capture the data points in L.

--Louis A. Talman
   Department of Mathematical and Computer Sciences
   Metropolitan State University of Denver

   <http://rowdy.msudenver.edu/~talmanl>



  • Prev by Date: Re: Using Mathematica
  • Next by Date: Re: Multiplication by 0: non-zero in versions 8 and 9
  • Previous by thread: Re: Getting the plotted data from a graph
  • Next by thread: Re: Getting the plotted data from a graph