Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14892

Re: Getting the plotted data from a graph

From Tomas Garza <tgarza10@msn.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Getting the plotted data from a graph
Date 2013-06-16 09:11 +0000
Message-ID <kpjvgd$9n4$1@smc.vnet.net> (permalink)
References <20130615082448.BFAE16A7C@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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@gmail.com
> Subject: Getting the plotted data from a graph
> To: mathgroup@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
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Getting the plotted data from a graph Tomas Garza <tgarza10@msn.com> - 2013-06-16 09:11 +0000

csiph-web