MathGroup Archive 2012

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

Search the Archive

Re: VertexLabeling in GraphPlot

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

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