Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to use VertexLabelStyle, but seemed not recognized in my system with version number 8.0.0.0. Is this expected or I have missed something? From the online documentation page, I don't see this option was added after version 8.0.0.0; it just says "New in version 8".

share|improve this question
    
Could you try Graph[{1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3, 3 \[UndirectedEdge] 1}, VertexLabels -> Table[i -> Subscript[v, i], {i, 3}], VertexLabelStyle -> Directive[Red, Italic, 20], ImagePadding -> 20] in your version and see what you get? This works fine in version 8.0.4. What you are seeing may be due to some fixes between 8.0.0 and 8.0.4 – kglr Feb 21 '12 at 21:34
    
I also find it does not work in 8.0.0.0 – Eli Lansey Feb 21 '12 at 21:45
    
@kguler: it says Graph::optx: Unknown option VertexLabelStyle in – Qiang Li Feb 21 '12 at 22:15

VertexLabelStyle was introduced in Mathematica 8.0.1.

The online documentation does not differentiate between the 8.0.x releases, but the in-product documentation does and has no mention of VertexLabelStyle in 8.0.0.

share|improve this answer

Collecting the suggestions in the comments above:

In version 8.0.4,

  Graph[{1 \[UndirectedEdge] 2, 2 \[UndirectedEdge] 3, 3 \[UndirectedEdge] 1},
  VertexLabels -> Table[i -> Subscript[v, i], {i, 3}], 
  VertexLabelStyle -> Directive[Red, Italic, 20], ImagePadding -> 20]

works fine. In version 8.0.0 it gives the error message

Graph::optx: Unknown option VertexLabelStyle in ...

So, most likely explanation is: another version 8.0.0 bug fixed in version 8.0.4.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.