Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9356

Re: Simple Graph plot question

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Simple Graph plot question
Date 2012-04-02 08:22 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jlbnk9$423$1@smc.vnet.net> (permalink)
References <201204010740.DAA23388@smc.vnet.net>

Show all headers | View raw


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 <rodrigomurtax@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

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Simple Graph plot question Bob Hanlon <hanlonr357@gmail.com> - 2012-04-02 08:22 +0000
  Re: Simple Graph plot question Murta <rodrigomurtax@gmail.com> - 2012-04-04 08:29 +0000

csiph-web