Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Labels on graphs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54612] Re: [mg54564] Labels on graphs
  • From: "David Park" <djmp at earthlink.net>
  • Date: Thu, 24 Feb 2005 03:21:15 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Erich,

Use the PlotRange Option.

<<DiscreteMath`Combinatorica`

ShowGraph[CompleteGraph[10], VertexLabel -> KSubsets[Range[5], 3],
  PlotRange -> All]

If we want to give the PlotRange explicitly, we have to remember that
Combinatorica scales the plot points to fit in the square {0,0} to {1,1} and
we must make sure the AspectRatio is Automatic.

ShowGraph[CompleteGraph[10], VertexLabel -> KSubsets[Range[5], 3],
    AspectRatio -> Automatic,
    PlotRange -> {{-0.05, 1.4}, {-0.05, 1.1}}];

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: Erich Neuwirth [mailto:erich.neuwirth at univie.ac.at]
To: mathgroup at smc.vnet.net

With
<<DiscreteMath`Combinatorica`
I would like to label the vertices of a graph with sequences, like this.
ShowGraph[CompleteGraph[10], VertexLabel -> KSubsets[Range[5], 3]]

The problem is that the label get chopped off at the right margin.
What is an easy solution for getting the labels fully readable in this case?




  • Prev by Date: Re: Solutions of an equation under complex form
  • Next by Date: Re: expression formatting inside tables
  • Previous by thread: Re: Labels on graphs
  • Next by thread: statistics on a sphere