Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: Plot without a graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84456] Re: Plot without a graph
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Tue, 25 Dec 2007 06:28:38 -0500 (EST)
  • References: <fkangm$dev$1@smc.vnet.net>

jackgold at umich.edu wrote:
> Hello,
> 
> Suppose I want the table of values that Mathematica uses to plot the 
> graph but I don't want the graph plotted.  I knew how to do it once, a 
> long time ago, but I have forgotten the scheme.  Something like 
> Display->Identity?
> 
> Sorry to trouble you guys with this trivia but I could not find the 
> method by searching the options for plot.  By the way, I do know how to 
> get the table!
> 
You are thinking of DisplayFunction->Identity, which had the effect of 
just returning the Graphics expression but not actually drawing the 
plot. This has changed somewhat at 6.0, and in an case did not do what I 
think you want to do - i.e. return a table of {x,y} pairs.

The following example shows how to achieve this:

Reap[Plot[Sin[x], {x, 0, 10},
    EvaluationMonitor :> Sow[{x, Sin[x]}]]][[2]]

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: DefaultAxesStyle
  • Next by Date: Re: how fill PolarPlot?
  • Previous by thread: Re: Plot without a graph
  • Next by thread: Re: Trouble with double factorial and an infinite product