MathGroup Archive 2008

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

Search the Archive

Default definition of VertexRenderingFunction

  • To: mathgroup at
  • Subject: [mg85253] Default definition of VertexRenderingFunction
  • From: "J. McKenzie Alexander" <jalex at>
  • Date: Mon, 4 Feb 2008 03:14:24 -0500 (EST)


I'm trying to write a custom definition for VertexRenderingFunction  
which mimics what happens when one sets the option VertexLabeling- 
 >True for GraphPlot.  When I evaluate

GraphPlot[ g, VertexLabeling->True]

for g defined as

g = Graph[{{{1, 2}}, {{2, 3}}, {{3, 1}}}, {{{-0.500, 0.866},
    VertexLabel -> {0.9999912669100502, 8.733089940157719*^-6}},
   {{-0.500, -0.866}, VertexLabel -> {0.38549212199770244,
     0.6145078780022976}}, {{1., 0.}, VertexLabel ->  
     0.6145078780022976}}}, EdgeDirection -> True]

the default definition for VertexRenderingFunction generates yellow  
rectangles with a darker border that is perfectly sized to fit around  
the vertex label.  How does one do that?  Is it done through some  
combination of Inset with Rectangle, or does one calculate the size of  
the label (if so, how?) and then draw the Rectangle with some kind of  
absolute size specification?

Many thanks,


Dr J. McKenzie Alexander
Department of Philosophy, Logic and Scientific Method
London School of Economics and Political Science
Houghton Street, London WC2A 2AE

Please access the attached hyperlink for an important electronic communications disclaimer:

  • Prev by Date: <<ImageProcessing` error
  • Next by Date: Re: How edit a saved palette?
  • Previous by thread: Re: <<ImageProcessing` error
  • Next by thread: Re: Default definition of VertexRenderingFunction