Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: How change font size of Graph vertex labels?
Replies: 7   Last Post: Mar 14, 2011 6:15 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Murray Eisenberg

Posts: 16
Registered: 4/14/10
How change font size of Graph vertex labels?
Posted: Mar 11, 2011 4:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.