MathGroup Archive 2008

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

Search the Archive

Re: Exporting the output of GraphPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89221] Re: [mg89188] Exporting the output of GraphPlot
  • From: "W_Craig Carter" <ccarter at mit.edu>
  • Date: Fri, 30 May 2008 02:55:07 -0400 (EDT)
  • References: <200805291101.HAA27299@smc.vnet.net>

Hello Abhishek,
Here is an example of a way to do this, it is not very general:

admat = Table[RandomInteger[], {12}, {12}];
gc = GraphPlot[admat]

FullForm[gc] (*Reveals the structure of the graphics, the first
argument of the GraphicsComplex is the
vertex list*)

pts = gc[[1, 1, 1, All]] (*extract the points*)


On Thu, May 29, 2008 at 7:01 AM,  <meghamani at gmail.com> wrote:
> Hi,
>     Is there a way to get the output of GraphPlot/GraphPlot3D as
> (x,y,z) coordinates? I want to use the output as the basis for
> ContourPlot3D.
>    The input is a 3 connected graph - it is distorted flat lattice
> with bumps. The 'spring' algorithms in GraphPlot3D give a pretty
> decent representation. But I really need a contour plot on top of this
> 'mesh'. Any ideas?
>
> Thanks,
> Abhishek
>
>



-- 
W. Craig Carter


  • Prev by Date: Re: Sum simplifying
  • Next by Date: Re: NDSolve with arrays
  • Previous by thread: Exporting the output of GraphPlot
  • Next by thread: Q: How to print with line wrap AND syntax coloring?