MathGroup Archive 2011

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

Search the Archive

Re: How change font size of Graph vertex labels?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117258] Re: How change font size of Graph vertex labels?
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sun, 13 Mar 2011 05:25:36 -0500 (EST)

Yes, VertexLabelStyle is the Graph option to use to change the size, 
etc., of vertex labels.

Although VertexLabelStyle is listed among the huge list within the More 
Information section of the Graph page, and although the item in that 
list does have a link to a separate doc page for VertexLabelStyle, oddly 
the option is NOT listed in the Options section of the Graph page. 
Clearly an omission.

On 3/12/2011 5:11 AM, Bob Hanlon wrote:
> Use VertexLabelStyle
>
> Graph[{1, 2, 3}, {DirectedEdge[1, 2], DirectedEdge[2, 3],
>    DirectedEdge[3, 1]}, {VertexLabels ->  {Placed["Name", Center]},
>    VertexSize ->  {Medium}, VertexLabelStyle ->  {24}}]
>
>
> Bob Hanlon
>
> ---- Murray Eisenberg<murrayeisenberg at gmail.com>  wrote:
>
> =============
> I want to make the "Names" labels of vertices in a Graph larger.  The
> "obvious" way...
>
>     Graph[{1, 2, 3},
>        {DirectedEdge[1, 2], DirectedEdge[2, 3], DirectedEdge[3, 1]},
>        {VertexLabels ->  {Placed["Name", Center]}, VertexSize ->  {Medium},
>        VertexStyle ->  {24}}]
>
> ...seems to do nothing. And replacing the option VertexStyle ->  {24}
> with the wordier VertexStyle ->  {FontSize->24} prevents Mathematica from
> evaluating the Graph expression at all.
>
> (Mathematica 8.0.1)

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: what's new in 8.0.1?
  • Next by Date: How to interactively re-scale graphics with mouse?
  • Previous by thread: Re: How change font size of Graph vertex labels?
  • Next by thread: Re: How change font size of Graph vertex labels?