MathGroup Archive 2012

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

Search the Archive

Re: VertexLabeling in GraphPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128031] Re: VertexLabeling in GraphPlot
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Mon, 10 Sep 2012 04:03:40 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20120909213244.00C2D6763@smc.vnet.net>

This doesn't solve all of the problems but helps with some of them.
Adjust the ImageSize and AspectRatio for the space available.

Manipulate[
 GraphPlot[
  Table[i -> Mod[3 i + 1, n], {i, n}],
  VertexRenderingFunction ->
   ({White, Disk[#1, .1],
      Black, Text[#2, #1]} &),
  DirectedEdges -> True,
  Method -> "HighDimensionalEmbedding",
  PackingMethod -> "ClosestPacking",
  AspectRatio -> GoldenRatio],
 {n, 10, 200, 1, Appearance -> "Labeled"}]


Bob Hanlon


On Sun, Sep 9, 2012 at 5:32 PM, Stefan Wolfrum <metawops at gmail.com> wrote:
> Hi folks,
>
> this is my very first posting to this group. So be patient with me if I'm making any mistakes. :-)
>
> I was playing with GraphPlot and soing something like this:
> Manipulate[=E2=80=A8 GraphPlot[Table[i -> Mod[3 i + 1, n], {i, n}], VertexLabeling -> True, =E2=80=A8  DirectedEdges -> True], {n, 10, 200, 1}]
>
> Sometimes the resulting yellow label boxes are overlapping and I was wondering if there is any way to manipulate the drawing of those labels? Unfortunately, LabelStyle->Small doesn't work here. (Of course, making the image larger reduces this problem but my screenestate isn't unlimited.
=A6 ;-))
>
> I was also wondering how I could make more space around each single VertexLabel so that they spread out more (and thus don't overlap).
>
> Any help greatly appreciated! :-)
>
> Thanks a lot in advance,
> Stefan.
>



  • Prev by Date: Re: A new FrontEnd
  • Next by Date: DiagramPlot and PlanarGraphPlot colors
  • Previous by thread: VertexLabeling in GraphPlot
  • Next by thread: How to simplify certain covariance expressions using