MathGroup Archive 2008

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

Search the Archive

Re: Default definition of VertexRenderingFunction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85297] Re: Default definition of VertexRenderingFunction
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 5 Feb 2008 06:12:27 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <fo6i0l$rea$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

Graphics[
  Inset[
   Framed["How do I do that", Background -> LightYellow,
    FrameStyle -> {Orange}
    ]
   ]
  ]

??

Regards
   Jens

J. McKenzie Alexander wrote:
> Hello,
> 
> 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.3854921219977025,
>      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,
> 
> Jason
> 
> --
> 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: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm
> 


  • Prev by Date: RE: Fourier Series Expansions and it's Coefficients question revised tia
  • Next by Date: Re: Fourier Series Expansions and it's Coefficients question revised
  • Previous by thread: Default definition of VertexRenderingFunction
  • Next by thread: Re: Specifiying finiteness condition using NDSolve