All of the data points is a lot of points, but if this is really important for you, then try
FullForm[g1]
You'll get, among other things, the list of all points {x, Sin[x]} used in the plot.
-Tomas
> From: econactually at gmail.com
> Subject: Getting the plotted data from a graph
> To: mathgroup at smc.vnet.net
> Date: Sat, 15 Jun 2013 04:24:48 -0400
>
> 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
>