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
- References:
- Exporting the output of GraphPlot
- From: meghamani@gmail.com
- Exporting the output of GraphPlot