The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Getting the plotted data from a graph
Replies: 5   Last Post: Jun 17, 2013 6:18 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Louis Talman

Posts: 5,100
Registered: 12/27/05
Re: Getting the plotted data from a graph
Posted: Jun 16, 2013 5:13 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Sat, 15 Jun 2013 02:24:48 -0600, Lily T. <> 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


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.