MathGroup Archive 1996

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

Search the Archive

Re: extracting points plotted by ContourPlot

  • Subject: [mg3378] Re: [mg3356] extracting points plotted by ContourPlot
  • From: dschneid at knox.edu ("Dennis M. Schneider")
  • Date: 2 Mar 1996 13:41:56 -0600
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.
  • Sender: daemon at wri.com



Hi Richard:

The following will do what you want.

Cases[Graphics[figure], Line[x_] :> x,Infinity]


Dennis M. Schneider
Knox College


On Thu, 29 Feb 1996, Richard Easther wrote:

> 
> Hi! 
> 
> Can someone help me with the following problem. After doing a     
> 
>        figure =  ContourPlot[f[x,y], ..., Contours ->{0}], 
> 
> I want to extract the set of points actually plotted - ie a set of {x,y} 
> where f[x,y] == 0 for some additional processing.
> 
> The command TextForm[InputForm[Graphics[ figure ]]] gives me a text 
> string which has a series of Line commands that actually contains the 
> {x,y} values that are plotted.
> 
> Now what I want to know is this: can someone tell me a nice (or even 
> ugly but workable!) way of extracting the list(s) of points plotted by 
> the Line command(s)?
> 
> If so I would be very grateful!
> 
> Richard
>  
> 
> +=================================================================+
> |    Richard Easther               No quote - just my address     |
> | easther at cfi.waseda.ac.jp                                        |      
> +=================================================================+
> 
> 


  • Prev by Date: Re: extracting points plotted by ContourPlot
  • Next by Date: Re: Using a remote kernel
  • Previous by thread: Re: extracting points plotted by ContourPlot
  • Next by thread: Re: extracting points plotted by ContourPlot