MathGroup Archive 2012

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

Search the Archive

Re: Simple Graph plot question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125821] Re: Simple Graph plot question
  • From: Murta <rodrigomurtax at gmail.com>
  • Date: Wed, 4 Apr 2012 04:28:29 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201204010740.DAA23388@smc.vnet.net> <jlbnk9$423$1@smc.vnet.net>

On Apr 2, 5:22 am, Bob Hanlon <hanlonr... at gmail.com> wrote:
> Use a contrasting color for the vertices and make the edges somewhat
> transparent.
>
> g = RandomGraph[{50, 490},
>   VertexSize -> Large,
>   PlotLabel -> Small,
>   ImageSize -> 500,
>   VertexStyle -> Red,
>   EdgeStyle -> Opacity[.4]]
>
> Or convert the Graph to GraphPlot
>
> GraphPlot[AdjacencyMatrix[g],
>  PlotLabel -> Small,
>  ImageSize -> 500,
>  PlotRangePadding -> None,
>  EdgeRenderingFunction ->
>   ({Thin, Darker[Blue, .6], Line[#1]} &),
>  VertexRenderingFunction ->
>   ({Red, EdgeForm[Black], Disk[#, .04]} &)]
>
> Bob Hanlon
>
>
>
>
>
>
>
> On Sun, Apr 1, 2012 at 3:40 AM, Murta <rodrigomur... at gmail.com> wrote:
> > Hi All
> > I'm working with some Graph plot, and have some difficult with the
> > objects render order. In this toy example
>
> > RandomGraph[{50,490},VertexSize->Large,PlotLabel->Small,ImageSize->
> > 500]
>
> > all my vertex are drawn in the background (below the edges), making my
> > graph useless.
> > How do I pass vertex to the foreground?
> > With the old GraphPlot we don't have this problem, just with the new
> > one Graph.
> > Some clue?
> > tks in advance
> > Murta

Hi Bob
I used "Show" to solve this problem.
Show[graph1,graph2], and graph2 without edges.
Tks!
Murta



  • Prev by Date: Re: Mathematica 8 3D Plot question
  • Next by Date: Re: addRule
  • Previous by thread: Re: Simple Graph plot question
  • Next by thread: Re: Matrix operation